Package org.apache.webbeans.annotation

Examples of org.apache.webbeans.annotation.StandardLiteral


        super(WebBeansType.INJECTIONPOINT,InjectionPoint.class);
        this.injectionPoint = injectionPoint;
       
        addQualifier(new CurrentLiteral());
        setImplScopeType(new DependentScopeLiteral());
        setType(new StandardLiteral());
        addApiType(InjectionPoint.class);
        addApiType(Object.class);
    }
View Full Code Here


        }
       
       
        comp.setImplScopeType(new DependentScopeLiteral());
        comp.addQualifier(new NewLiteral());
        comp.setType(new StandardLiteral());
        comp.setName(null);
       
        Set<InjectionPoint> injectionPoints = component.getInjectionPoints();
        for(InjectionPoint injectionPoint : injectionPoints)
        {
View Full Code Here

        EventBean<T> component = new EventBean<T>(returnType, eventType, WebBeansType.OBSERVABLE);

        DefinitionUtil.defineApiTypes(component, returnType);
        DefinitionUtil.defineQualifiers(component, annotations);

        component.setType(new StandardLiteral());
        component.setImplScopeType(new DependentScopeLiteral());                     

        return component;
    }
View Full Code Here

    public static BeanManagerBean getManagerComponent()
    {
        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

        instanceComponent.addApiType(clazz);
        instanceComponent.addApiType(Object.class);
       
        DefinitionUtil.defineQualifiers(instanceComponent, obtainsBindings);
        instanceComponent.setImplScopeType(new DependentScopeLiteral());
        instanceComponent.setType(new StandardLiteral());
        instanceComponent.setName(null);
       
       
        return instanceComponent;
    }
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.StandardLiteral

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.