Package org.apache.webbeans.annotation

Examples of org.apache.webbeans.annotation.CurrentLiteral


            }
        }

        if (anns.size() == 0)
        {
            component.addQualifier(new CurrentLiteral());
        }

        for (Annotation ann : anns)
        {
            component.addQualifier(ann);
View Full Code Here


    @SuppressWarnings("unchecked")
    public Conversation getCurrentConversation()
    {

        Bean<Conversation> bean = (Bean<Conversation>)BeanManagerImpl.getManager().resolveByType(Conversation.class, new CurrentLiteral()).iterator().next();
        Conversation conversation = BeanManagerImpl.getManager().getInstance(bean);

        return conversation;
    }
View Full Code Here

        comp = new ExtensionBean<T>(clazz);
       
        DefinitionUtil.defineApiTypes(comp, clazz);
       
        comp.setImplScopeType(new ApplicationScopeLiteral());
        comp.addQualifier(new CurrentLiteral());
        comp.setType(new ProductionLiteral());
       
        DefinitionUtil.defineObserverMethods(comp, clazz);

        return comp;
View Full Code Here

    {
        BeanManagerBean managerComponent = new BeanManagerBean();

        managerComponent.setImplScopeType(new DependentScopeLiteral());
        managerComponent.setType(new StandardLiteral());
        managerComponent.addQualifier(new CurrentLiteral());
        managerComponent.addApiType(BeanManager.class);
        managerComponent.addApiType(Object.class);

        return managerComponent;
    }
View Full Code Here

        conversationComp.addApiType(Conversation.class);
        conversationComp.addApiType(ConversationImpl.class);
        conversationComp.addApiType(Object.class);
        conversationComp.setImplScopeType(new RequestedScopeLiteral());
        conversationComp.setType(new StandardLiteral());
        conversationComp.addQualifier(new CurrentLiteral());
        conversationComp.setName("javax.context.conversation");

        return conversationComp;
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.annotation.CurrentLiteral

Copyright © 2018 www.massapicom. 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.