Examples of BeforeShutdownImpl


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

    }

    public void applicationEnded(ServletContextEvent event)
    {
        //Fire shut down
        this.rootManager.fireEvent(new BeforeShutDownImpl(), new Annotation[0]);
               
        service.shutdownNow();

        ContextFactory.destroyApplicationContext(event.getServletContext());
View Full Code Here

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

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

            // Fire shut down
            appContext.getBeanManager().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

        {
            //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

        Assert.assertNotNull(instance);
       
        Assert.assertTrue(getBeanManager().isPassivatingScope(ExternalTestScoped.class));
       
        //Fire shut down
        getBeanManager().fireEvent(new BeforeShutdownImpl());

        webBeansContext.getContextFactory().destroyApplicationContext(null);

        shutDownContainer();
       
View Full Code Here

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

            //Set up the thread local for Application scoped as listeners will be App scoped.
            contextsService.startContext(ApplicationScoped.class, endObject);
           
            //Fire shut down
            beanManager.fireEvent(new BeforeShutdownImpl());
           
            //Destroys context
            contextsService.destroy(endObject);
           
            //Unbind BeanManager
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(appContext.getClassLoader());

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

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

      // Free all plugin resources
View Full Code Here

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(null);
       
        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

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

        ContextFactory.destroyApplicationContext(null);
       
        shutDownContainer();
       
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.