Examples of BeforeShutdownImpl


Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

        Assert.assertNotNull(MyExtension.afterDeploymentValidation);
        Assert.assertNotNull(MyExtension.processInjectionTarget);
        Assert.assertNotNull(MyExtension.processProducer);
       
        //Fire shut down
        getBeanManager().fireEvent(new BeforeShutdownImpl(), new Annotation[0]);

        ContextFactory.destroyApplicationContext(servletContext);
       
        Assert.assertNotNull(MyExtension.beforeShutdownEvent);
    }
View Full Code Here

Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

        {
            //Sub-classes operations           
            beforeStopApplication(endObject);
           
            //Fire shut down
            this.beanManager.fireEvent(new BeforeShutdownImpl(), new Annotation[0]);
           
            //Destroys context
            this.contextsService.destroy(endObject);
           
            //Unbind BeanManager
View Full Code Here

Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

        {
            logger.debug("OpenWebBeans Container is stopping.");
           

            //Fire shut down
            this.beanManager.fireEvent(new BeforeShutdownImpl(), new Annotation[0]);
           
            JNDIService jndiService = ServiceLoader.getService(JNDIService.class);
           
            jndiService.unbind(WebBeansConstants.WEB_BEANS_MANAGER_JNDI_NAME);
                   
View Full Code Here

Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

            }
        }
        logger.debug("OpenWebBeans Container is stopping.");

        //Fire shut down
        this.rootManager.fireEvent(new BeforeShutdownImpl(), new Annotation[0]);
               
        service.shutdownNow();

        ContextFactory.destroyApplicationContext(servletContext);
       
View Full Code Here

Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

        Assert.assertNotNull(instance);
       
        Assert.assertTrue(getLifecycle().getBeanManager().isPassivatingScope(ExternalTestScoped.class));
       
        //Fire shut down
        getBeanManager().fireEvent(new BeforeShutdownImpl(), new Annotation[0]);

        ContextFactory.destroyApplicationContext(servletContext);
       
        shutDownContainer();
       
View Full Code Here

Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

        {
            //Sub-classes operations
            beforeStopApplication(endObject);

            //Fire shut down
            this.beanManager.fireEvent(new BeforeShutdownImpl(), new Annotation[0]);

            //Destroys context
            this.contextsService.destroy(endObject);

            //Unbind BeanManager
View Full Code Here

Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

        try {
            // Setting context class loader for cleaning
            Thread.currentThread().setContextClassLoader(classLoader);

            // Fire shut down
            webBeansContext.getBeanManagerImpl().fireEvent(new BeforeShutdownImpl());

            // Destroys context
            this.contexsServices.destroy(null);

            // Free all plugin resources
View Full Code Here

Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

            //Fire shut down
            if (beanManager instanceof WebappBeanManager) {
                ((WebappBeanManager) beanManager).beforeStop();
            }
            this.beanManager.fireEvent(new BeforeShutdownImpl());

            //Destroys context
            this.contextsService.destroy(null);

            //Unbind BeanManager
View Full Code Here

Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

            //Fire shut down
            if (beanManager instanceof WebappBeanManager) {
                ((WebappBeanManager) beanManager).beforeStop();
            }
            this.beanManager.fireEvent(new BeforeShutdownImpl(), true);

            //Destroys context
            this.contextsService.destroy(null);

            //Unbind BeanManager
View Full Code Here

Examples of org.apache.webbeans.portable.events.discovery.BeforeShutdownImpl

        try {
            // Setting context class loader for cleaning
            Thread.currentThread().setContextClassLoader(classLoader);

            // Fire shut down
            webBeansContext.getBeanManagerImpl().fireEvent(new BeforeShutdownImpl());

            // Destroys context
            this.contexsServices.destroy(null);

            // Free all plugin resources
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.