@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); }
@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); }
@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); }
@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); }
@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); }
@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); }