Package org.apache.webbeans.newtests.disposes.common

Examples of org.apache.webbeans.newtests.disposes.common.RequestModel


       
        startContainer(beanClasses, beanXmls);       

        Bean<RequestModel> bean = (Bean<RequestModel>)getBeanManager().getBeans("rproduce").iterator().next();
        CreationalContext<RequestModel> cc = getBeanManager().createCreationalContext(bean);
        RequestModel model = (RequestModel) getBeanManager().getReference(bean, RequestModel.class, cc);
        System.out.println(model.getID());
       
        shutDownContainer();
       
        Assert.assertTrue(DependentBean.OK);
       
View Full Code Here


       
        startContainer(beanClasses, beanXmls);       

        Bean<RequestModel> bean = (Bean<RequestModel>)getBeanManager().getBeans("rproduce").iterator().next();
        CreationalContext<RequestModel> cc = getBeanManager().createCreationalContext(bean);
        RequestModel model = (RequestModel) getBeanManager().getReference(bean, RequestModel.class, cc);
        System.out.println(model.getID());
       
        shutDownContainer();
       
        Assert.assertTrue(AppScopedBean.OK);
       
View Full Code Here

       
        startContainer(beanClasses, beanXmls);       

        Bean<RequestModel> bean = (Bean<RequestModel>)getBeanManager().getBeans("rproduce").iterator().next();
        CreationalContext<RequestModel> cc = getBeanManager().createCreationalContext(bean);
        RequestModel model = (RequestModel) getBeanManager().getReference(bean, RequestModel.class, cc);
        System.out.println(model.getID());
       
        shutDownContainer();
       
        Assert.assertTrue(AppScopedBean.OK);
       
View Full Code Here

        RequestModelProducer.producerGotDestroyed = false;
        DependentModelProducer.producerGotDestroyed = false;
        DependentModelProducer.disposerCount = 0;

        RequestModel model = getInstance(RequestModel.class);

        Assert.assertEquals(0, model.getID());

        getLifecycle().getContextService().endContext(RequestScoped.class, null);

        Assert.assertFalse(DependentModelProducer.producerGotDestroyed);
        Assert.assertFalse(RequestModelProducer.producerGotDestroyed);
View Full Code Here

    public static boolean producerGotDestroyed = false;

    @Produces @RequestScoped @Named("rproduce")
    public RequestModel rproduce()
    {
        RequestModel rmodel =  new RequestModel();
        rmodel.setDisposeModel(dependentModel);

        System.out.println("produced RequestModel=" + rmodel);
        return rmodel;
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.newtests.disposes.common.RequestModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.