Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.weld.bean.builtin;
 
 
    public ConversationBean(BeanManagerImpl beanManager) {
        super(beanManagerConversation.class);
    }
    @Override
    public void internalInitialize(BeanDeployerEnvironment environment) {
        super.internalInitialize(environment);
    }
    @Override
    protected Conversation newInstance(InjectionPoint ipCreationalContext<ConversationcreationalContext) {
        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();
    }
    @Override
    public Class<?> getBeanClass() {
        return ConversationImpl.class;
    }
    @Override
    public Class<? extends AnnotationgetScope() {
        return RequestScoped.class;
    }
    @Override
    public String getName() {
        return Conversation.class.getName().toLowerCase(.);
    }
New to GrepCode? Check out our FAQ X