Search in sources :

Example 1 with AfterBeanDiscoveryImpl

use of org.apache.webbeans.portable.events.discovery.AfterBeanDiscoveryImpl in project tomee by apache.

the class WebappBeanManagerTest method containerEventsShouldntGoUp.

@Test
public void containerEventsShouldntGoUp() {
    final WebappWebBeansContext ctx = new WebappWebBeansContext(Collections.<Class<?>, Object>emptyMap(), new Properties(), new WebBeansContext());
    final WebappBeanManager wbm = new WebappBeanManager(ctx) {

        @Override
        public BeanManagerImpl getParentBm() {
            throw new IllegalStateException("shouldn't be called");
        }
    };
    wbm.fireEvent(new GProcessProducer(null, null), true);
    wbm.fireEvent(new GProcessProducerField(null, null, null), true);
    wbm.fireEvent(new GProcessProducerMethod(null, null, null), true);
    wbm.fireEvent(new GProcessInjectionTarget(null, null), true);
    wbm.fireEvent(new GProcessBean(null, null), true);
    wbm.fireEvent(new GProcessAnnotatedType(null), true);
    wbm.fireEvent(new GProcessSessionBean(null, null, null, null), true);
    wbm.fireEvent(new AfterBeanDiscoveryImpl(ctx), true);
    wbm.fireEvent(new AfterDeploymentValidationImpl(wbm), true);
    wbm.fireEvent(new BeforeBeanDiscoveryImpl(ctx), true);
    wbm.fireEvent(new BeforeShutdownImpl(), true);
}
Also used : GProcessBean(org.apache.webbeans.portable.events.generics.GProcessBean) BeforeShutdownImpl(org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl) AfterBeanDiscoveryImpl(org.apache.webbeans.portable.events.discovery.AfterBeanDiscoveryImpl) GProcessAnnotatedType(org.apache.webbeans.portable.events.generics.GProcessAnnotatedType) Properties(java.util.Properties) BeforeBeanDiscoveryImpl(org.apache.webbeans.portable.events.discovery.BeforeBeanDiscoveryImpl) AfterDeploymentValidationImpl(org.apache.webbeans.portable.events.discovery.AfterDeploymentValidationImpl) GProcessInjectionTarget(org.apache.webbeans.portable.events.generics.GProcessInjectionTarget) GProcessProducer(org.apache.webbeans.portable.events.generics.GProcessProducer) WebBeansContext(org.apache.webbeans.config.WebBeansContext) GProcessProducerMethod(org.apache.webbeans.portable.events.generics.GProcessProducerMethod) GProcessSessionBean(org.apache.webbeans.portable.events.generics.GProcessSessionBean) GProcessProducerField(org.apache.webbeans.portable.events.generics.GProcessProducerField) Test(org.junit.Test)

Aggregations

Properties (java.util.Properties)1 WebBeansContext (org.apache.webbeans.config.WebBeansContext)1 AfterBeanDiscoveryImpl (org.apache.webbeans.portable.events.discovery.AfterBeanDiscoveryImpl)1 AfterDeploymentValidationImpl (org.apache.webbeans.portable.events.discovery.AfterDeploymentValidationImpl)1 BeforeBeanDiscoveryImpl (org.apache.webbeans.portable.events.discovery.BeforeBeanDiscoveryImpl)1 BeforeShutdownImpl (org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl)1 GProcessAnnotatedType (org.apache.webbeans.portable.events.generics.GProcessAnnotatedType)1 GProcessBean (org.apache.webbeans.portable.events.generics.GProcessBean)1 GProcessInjectionTarget (org.apache.webbeans.portable.events.generics.GProcessInjectionTarget)1 GProcessProducer (org.apache.webbeans.portable.events.generics.GProcessProducer)1 GProcessProducerField (org.apache.webbeans.portable.events.generics.GProcessProducerField)1 GProcessProducerMethod (org.apache.webbeans.portable.events.generics.GProcessProducerMethod)1 GProcessSessionBean (org.apache.webbeans.portable.events.generics.GProcessSessionBean)1 Test (org.junit.Test)1