Examples of invokePreDestroy()


Examples of com.sun.enterprise.container.common.spi.InterceptorInvoker.invokePreDestroy()

                    InterceptorInvoker invoker = (InterceptorInvoker)
                        next.getSupportingInfoForBeanInstance(instance);

                    try {
                        invoker.invokePreDestroy();
                    } catch(Exception e) {
                        _logger.log(Level.FINE, "Managed bean " + next.getBeanClassName() + " PreDestroy", e);
                    }

                }                                
View Full Code Here

Examples of com.sun.enterprise.container.common.spi.InterceptorInvoker.invokePreDestroy()

           
            InterceptorInvoker invoker = (InterceptorInvoker)
                desc.getSupportingInfoForBeanInstance(managedBeanInstance);

            try {
                invoker.invokePreDestroy();
            } catch(Exception e) {
                _logger.log(Level.FINE, "Managed bean " + desc.getBeanClassName() + " PreDestroy", e);
            }

            desc.clearBeanInstanceInfo(managedBeanInstance);
View Full Code Here

Examples of com.sun.faces.spi.InjectionProvider.invokePreDestroy()

        InjectionProvider injectionProvider = associate.getInjectionProvider();
        assertNotNull(injectionProvider);
        try {
            injectionProvider.inject(protectedBean);
            injectionProvider.invokePostConstruct(protectedBean);
            injectionProvider.invokePreDestroy(protectedBean);
            injectionProvider.inject(packagePrivateBean);
            injectionProvider.invokePostConstruct(packagePrivateBean);
            injectionProvider.invokePreDestroy(packagePrivateBean);
            injectionProvider.inject(privateBean);
            injectionProvider.invokePostConstruct(privateBean);
View Full Code Here

Examples of com.sun.faces.spi.InjectionProvider.invokePreDestroy()

            injectionProvider.inject(protectedBean);
            injectionProvider.invokePostConstruct(protectedBean);
            injectionProvider.invokePreDestroy(protectedBean);
            injectionProvider.inject(packagePrivateBean);
            injectionProvider.invokePostConstruct(packagePrivateBean);
            injectionProvider.invokePreDestroy(packagePrivateBean);
            injectionProvider.inject(privateBean);
            injectionProvider.invokePostConstruct(privateBean);
            injectionProvider.invokePreDestroy(privateBean);
            injectionProvider.inject(concreteBean);
            injectionProvider.invokePostConstruct(concreteBean);
View Full Code Here

Examples of com.sun.faces.spi.InjectionProvider.invokePreDestroy()

            injectionProvider.inject(packagePrivateBean);
            injectionProvider.invokePostConstruct(packagePrivateBean);
            injectionProvider.invokePreDestroy(packagePrivateBean);
            injectionProvider.inject(privateBean);
            injectionProvider.invokePostConstruct(privateBean);
            injectionProvider.invokePreDestroy(privateBean);
            injectionProvider.inject(concreteBean);
            injectionProvider.invokePostConstruct(concreteBean);
            injectionProvider.invokePreDestroy(concreteBean);
        } catch (Exception e) {
            System.out.println(e);
View Full Code Here

Examples of com.sun.faces.spi.InjectionProvider.invokePreDestroy()

            injectionProvider.inject(privateBean);
            injectionProvider.invokePostConstruct(privateBean);
            injectionProvider.invokePreDestroy(privateBean);
            injectionProvider.inject(concreteBean);
            injectionProvider.invokePostConstruct(concreteBean);
            injectionProvider.invokePreDestroy(concreteBean);
        } catch (Exception e) {
            System.out.println(e);
            e.printStackTrace();
            assertTrue(false);
        }
View Full Code Here

Examples of com.sun.faces.spi.InjectionProvider.invokePreDestroy()

                for (Map.Entry<FactoryManagerCacheKey, FactoryManager> entry :
                        FACTORIES_CACHE.applicationMap.entrySet()) {
                    factories = entry.getValue().getFactories();
                    for (Object curFactory : factories) {
                        try {
                            provider.invokePreDestroy(curFactory);
                        } catch (Exception ex) {
                            if (LOGGER.isLoggable(Level.SEVERE)) {
                                String message = MessageFormat.format("Unable to invoke @PreDestroy annotated methods on {0}.",
                                        curFactory);
                                LOGGER.log(Level.SEVERE, message, ex);
View Full Code Here

Examples of com.sun.faces.spi.InjectionProvider.invokePreDestroy()

                for (Map.Entry<FactoryManagerCacheKey, FactoryManager> entry :
                        FACTORIES_CACHE.applicationMap.entrySet()) {
                    factories = entry.getValue().getFactories();
                    for (Object curFactory : factories) {
                        try {
                            provider.invokePreDestroy(curFactory);
                        } catch (Exception ex) {
                            if (LOGGER.isLoggable(Level.SEVERE)) {
                                String message = MessageFormat.format("Unable to invoke @PreDestroy annotated methods on {0}.",
                                        curFactory);
                                LOGGER.log(Level.SEVERE, message, ex);
View Full Code Here

Examples of org.apache.axis2.jaxws.server.endpoint.lifecycle.EndpointLifecycleManager.invokePreDestroy()

        try{
            EndpointLifecycleManagerFactory elmf = (EndpointLifecycleManagerFactory)FactoryRegistry.getFactory(EndpointLifecycleManagerFactory.class);
            assertNotNull(elmf);
            EndpointLifecycleManager elm = elmf.createEndpointLifecycleManager(endpointInstance);
            assertNotNull(elm);
            elm.invokePreDestroy();
            TestLogger.logger.debug("------------------------------");
        }catch(Exception e){
            fail(e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.server.endpoint.lifecycle.EndpointLifecycleManager.invokePreDestroy()

        try{
            EndpointLifecycleManagerFactory elmf = (EndpointLifecycleManagerFactory)FactoryRegistry.getFactory(EndpointLifecycleManagerFactory.class);
            assertNotNull(elmf);
            EndpointLifecycleManager elm = elmf.createEndpointLifecycleManager(badObject);
            assertNotNull(elm);
            elm.invokePreDestroy();
            TestLogger.logger.debug("------------------------------");
        }catch(Exception e){
            fail(e.getMessage());
        }
    }
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.