public void build(final AppInfo appInfo, final AppContext appContext, final List<BeanContext> allDeployments, final WebContext webContext) { final ThreadSingletonService singletonService = initSingleton(); singletonService.initialize(new StartupObject(appContext, appInfo, allDeployments, webContext)); }
private ThreadSingletonService initSingleton() { ThreadContext.addThreadContextListener(new RequestScopedThreadContextListener()); ThreadSingletonService singletonService = SystemInstance.get().getComponent(ThreadSingletonService.class); //TODO hack for tests. Currently initialized in OpenEJB line 90. cf alternative in AccessTimeoutTest which would //presumably have to be replicated in about 70 other tests. if (singletonService == null) { singletonService = initializeOWB(getClass().getClassLoader()); } else { logger.info("Existing thread singleton service in SystemInstance(): " + singletonService); } return singletonService; }
final List<BeanContext> beanContexts = assembler.initEjbs(classLoader, appInfo, appContext, injections, new ArrayList<BeanContext>(), webAppInfo.moduleId); appContext.getBeanContexts().addAll(beanContexts); new CdiBuilder().build(appInfo, appContext, appContext.getBeanContexts(), webContext); assembler.startEjbs(true, beanContexts);
new CdiBuilder().build(appInfo, appContext, beanContexts, webContext); assembler.startEjbs(true, beanContexts);
new CdiBuilder().build(appInfo, appContext, allDeployments); ensureWebBeansContext(appContext); appJndiContext.bind("app/BeanManager", appContext.getBeanManager());
private ThreadSingletonService initSingleton() { ThreadContext.addThreadContextListener(new RequestScopedThreadContextListener()); ThreadSingletonService singletonService = SystemInstance.get().getComponent(ThreadSingletonService.class); //TODO hack for tests. Currently initialized in OpenEJB line 90. cf alternative in AccessTimeoutTest which would //presumably have to be replicated in about 70 other tests. if (singletonService == null) { singletonService = initializeOWB(); } else { logger.info("Existing thread singleton service in SystemInstance(): " + singletonService); } return singletonService; }
public void build(final AppInfo appInfo, final AppContext appContext, final List<BeanContext> allDeployments) { initSingleton().initialize(new StartupObject(appContext, appInfo, allDeployments)); }
new CdiBuilder().build(appInfo, appContext, allDeployments); ensureWebBeansContext(appContext); appJndiContext.bind("app/BeanManager", appContext.getBeanManager());
CdiBuilder.initializeOWB();
public void build(final AppInfo appInfo, final AppContext appContext, final List<BeanContext> allDeployments, final WebContext webContext) { final ThreadSingletonService singletonService = initSingleton(); singletonService.initialize(new StartupObject(appContext, appInfo, allDeployments, webContext)); }
servletContextHandler.getContexts().put(classLoader, standardContext.getServletContext()); try { new CdiBuilder().build(contextInfo.appInfo, appContext, beanContexts, webContext); } catch (final Exception e) { final DeploymentExceptionManager dem = SystemInstance.get().getComponent(DeploymentExceptionManager.class);
CdiBuilder.initializeOWB(getClass().getClassLoader());
public void build(final AppInfo appInfo, final AppContext appContext, final List<BeanContext> allDeployments) { initSingleton().initialize(new StartupObject(appContext, appInfo, allDeployments)); }
CdiBuilder.initializeOWB();