Refine search
@Override protected Conversation newInstance(InjectionPoint ip, CreationalContext<Conversation> creationalContext) { for (ConversationContext conversationContext : getBeanManager().instance().select(ConversationContext.class)) { if (conversationContext.isActive()) { return conversationContext.getCurrentConversation(); } } /* * Can't get a "real" Conversation, but we need to return something, so * return this dummy Conversation which will simply throw a * ContextNotActiveException for every method call as the spec requires. */ return new ConversationImpl(beanManager); }
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new EventBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new EventBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Conversation newInstance(InjectionPoint ip, CreationalContext<Conversation> creationalContext) { for (ConversationContext conversationContext : getBeanManager().instance().select(ConversationContext.class)) { if (conversationContext.isActive()) { return conversationContext.getCurrentConversation(); } } /* * Can't get a "real" Conversation, but we need to return something, so * return this dummy Conversation which will simply throw a * ContextNotActiveException for every method call as the spec requires. */ return new ConversationImpl(beanManager); }
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new EventBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Conversation newInstance(InjectionPoint ip, CreationalContext<Conversation> creationalContext) { for (ConversationContext conversationContext : getBeanManager().instance().select(ConversationContext.class)) { if (conversationContext.isActive()) { return conversationContext.getCurrentConversation(); } } /* * Can't get a "real" Conversation, but we need to return something, so * return this dummy Conversation which will simply throw a * ContextNotActiveException for every method call as the spec requires. */ return new ConversationImpl(beanManager); }
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new EventBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Conversation newInstance(InjectionPoint ip, CreationalContext<Conversation> creationalContext) { for (ConversationContext conversationContext : getBeanManager().instance().select(ConversationContext.class)) { if (conversationContext.isActive()) { return conversationContext.getCurrentConversation(); } } /* * Can't get a "real" Conversation, but we need to return something, so * return this dummy Conversation which will simply throw a * ContextNotActiveException for every method call as the spec requires. */ return new ConversationImpl(beanManager); }
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); beanDeployer.addBuiltInBean(new EventBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Conversation newInstance(InjectionPoint ip, CreationalContext<Conversation> creationalContext) { for (ConversationContext conversationContext : getBeanManager().instance().select(ConversationContext.class)) { if (conversationContext.isActive()) { return conversationContext.getCurrentConversation(); } } /* * Can't get a "real" Conversation, but we need to return something, so * return this dummy Conversation which will simply throw a * ContextNotActiveException for every method call as the spec requires. */ return new ConversationImpl(beanManager); }
beanDeployer.addBuiltInBean(new EventBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new ServletContextBean(beanManager)); if (beanManager.getServices().contains(TransactionServices.class)) { beanDeployer.addBuiltInBean(new UserTransactionBean(beanManager)); if (beanManager.getServices().contains(SecurityServices.class)) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager));
@Override protected Conversation newInstance(InjectionPoint ip, CreationalContext<Conversation> creationalContext) { for (ConversationContext conversationContext : getBeanManager().instance().select(ConversationContext.class)) { if (conversationContext.isActive()) { return conversationContext.getCurrentConversation(); } } /* * Can't get a "real" Conversation, but we need to return something, so * return this dummy Conversation which will simply throw a * ContextNotActiveException for every method call as the spec requires. */ return new ConversationImpl(beanManager); }