Examples of CdiAppContextsService


Examples of org.apache.openejb.cdi.CdiAppContextsService

            final Map<Class<?>, Object> services = new HashMap<Class<?>, Object>();

            services.put(AppContext.class, appContext);
            services.put(TransactionService.class, new OpenEJBTransactionService());
            services.put(ContextsService.class, new CdiAppContextsService(true));
            services.put(ResourceInjectionService.class, new CdiResourceInjectionService());
            services.put(ScannerService.class, new CdiScanner());
            services.put(ELAdaptor.class, new CustomELAdapter(appContext));
            services.put(LoaderService.class, new OptimizedLoaderService());
            final Properties properties = new Properties();
View Full Code Here

Examples of org.apache.openejb.cdi.CdiAppContextsService

            } catch (Exception e1) {
                logger.info("openWebbeans-jsf is not in the classpath because the app does not contain webbean, conversationService will not be available.");
            }
        }
 
        services.put(ContextsService.class, new CdiAppContextsService(true));
        services.put(ResourceInjectionService.class, new CdiResourceInjectionService());
        services.put(ScannerService.class, new CdiScanner());
        WebBeansContext webBeansContext = new WebBeansContext(services, properties);
        //must be last since it copies stuff
        OpenEJBLifecycle lifecycle = new OpenEJBLifecycle(webBeansContext);
View Full Code Here

Examples of org.apache.openejb.cdi.CdiAppContextsService

            final Properties properties = new Properties();
            properties.setProperty(org.apache.webbeans.spi.SecurityService.class.getName(), ManagedSecurityService.class.getName());

            webBeansContext = new WebBeansContext(services, properties);

            webBeansContext.registerService(ContextsService.class, new CdiAppContextsService(webBeansContext, true));
            webBeansContext.registerService(ResourceInjectionService.class, new CdiResourceInjectionService(webBeansContext));

            appContext.setCdiEnabled(false);
            OpenEJBTransactionService.class.cast(services.get(TransactionService.class)).setWebBeansContext(webBeansContext);
        }
View Full Code Here

Examples of org.apache.openejb.cdi.CdiAppContextsService

            final Map<Class<?>, Object> services = new HashMap<Class<?>, Object>();

            services.put(AppContext.class, appContext);
            services.put(TransactionService.class, new OpenEJBTransactionService());
            services.put(ContextsService.class, new CdiAppContextsService(true));
            services.put(ResourceInjectionService.class, new CdiResourceInjectionService());
            services.put(ScannerService.class, new CdiScanner());
            services.put(ELAdaptor.class, (ELAdaptor) new CustomELAdapter(appContext));
            final Properties properties = new Properties();
            properties.setProperty(org.apache.webbeans.spi.SecurityService.class.getName(), ManagedSecurityService.class.getName());
View Full Code Here

Examples of org.apache.openejb.cdi.CdiAppContextsService

            } catch (Exception e1) {
                logger.info("openWebbeans-jsf is not in the classpath because the app does not contain webbean, conversationService will not be available.");
            }
        }

        services.put(ContextsService.class, new CdiAppContextsService(true));
        services.put(ResourceInjectionService.class, new CdiResourceInjectionService());
        services.put(ScannerService.class, new CdiScanner());
        WebBeansContext webBeansContext = new WebBeansContext(services, properties);
        //must be last since it copies stuff
        OpenEJBLifecycle lifecycle = new OpenEJBLifecycle(webBeansContext);
View Full Code Here

Examples of org.apache.openejb.cdi.CdiAppContextsService

            final Map<Class<?>, Object> services = new HashMap<Class<?>, Object>();

            services.put(AppContext.class, appContext);
            services.put(TransactionService.class, new OpenEJBTransactionService());
            services.put(ContextsService.class, new CdiAppContextsService(true));
            services.put(ResourceInjectionService.class, new CdiResourceInjectionService());
            services.put(ScannerService.class, new CdiScanner());
            services.put(ELAdaptor.class, new CustomELAdapter(appContext));
            services.put(LoaderService.class, new OptimizedLoaderService());
            final Properties properties = new Properties();
View Full Code Here

Examples of org.apache.openejb.cdi.CdiAppContextsService

            final Properties properties = new Properties();
            properties.setProperty(org.apache.webbeans.spi.SecurityService.class.getName(), ManagedSecurityService.class.getName());

            webBeansContext = new WebBeansContext(services, properties);

            webBeansContext.registerService(ContextsService.class, new CdiAppContextsService(webBeansContext, true));
            webBeansContext.registerService(ResourceInjectionService.class, new CdiResourceInjectionService(webBeansContext));

            appContext.setCdiEnabled(false);
            OpenEJBTransactionService.class.cast(services.get(TransactionService.class)).setWebBeansContext(webBeansContext);
        }
View Full Code Here

Examples of org.apache.openejb.cdi.CdiAppContextsService

            final Properties properties = new Properties();
            properties.setProperty(org.apache.webbeans.spi.SecurityService.class.getName(), ManagedSecurityService.class.getName());

            webBeansContext = new WebBeansContext(services, properties);

            webBeansContext.registerService(ContextsService.class, new CdiAppContextsService(webBeansContext, true));
            webBeansContext.registerService(ResourceInjectionService.class, new CdiResourceInjectionService(webBeansContext));

            appContext.setCdiEnabled(false);
            OpenEJBTransactionService.class.cast(services.get(TransactionService.class)).setWebBeansContext(webBeansContext);
        }
View Full Code Here

Examples of org.apache.openejb.cdi.CdiAppContextsService

            final Properties properties = new Properties();
            properties.setProperty(org.apache.webbeans.spi.SecurityService.class.getName(), ManagedSecurityService.class.getName());

            webBeansContext = new WebBeansContext(services, properties);

            webBeansContext.registerService(ContextsService.class, new CdiAppContextsService(webBeansContext, true));
            webBeansContext.registerService(ResourceInjectionService.class, new CdiResourceInjectionService(webBeansContext));

            appContext.setCdiEnabled(false);
            OpenEJBTransactionService.class.cast(services.get(TransactionService.class)).setWebBeansContext(webBeansContext);
View Full Code Here

Examples of org.apache.openejb.cdi.CdiAppContextsService

            final Map<Class<?>, Object> services = new HashMap<Class<?>, Object>();

            services.put(JNDIService.class, new OpenEJBJndiService());
            services.put(AppContext.class, appContext);
            services.put(TransactionService.class, new OpenEJBTransactionService());
            services.put(ContextsService.class, new CdiAppContextsService(webBeansContext, true));
            services.put(ResourceInjectionService.class, new CdiResourceInjectionService(webBeansContext));
            services.put(ScannerService.class, new CdiScanner());
            services.put(ELAdaptor.class, new CustomELAdapter(appContext));
            services.put(LoaderService.class, new OptimizedLoaderService());
            final Properties properties = new Properties();
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.