Examples of AnyLiteral


Examples of org.apache.webbeans.annotation.AnyLiteral

     * filter out all {@code ObserverMethod}s which do not fit the given
     * qualifiers.
     */
    private <T> Set<ObserverMethod<? super T>> filterByQualifiers(Set<ObserverMethod<? super T>> observers, Set<Annotation> eventQualifiers)
    {
        eventQualifiers.add(new AnyLiteral());
               
        Set<ObserverMethod<? super T>> matching = new HashSet<ObserverMethod<? super T>>();

        search: for (ObserverMethod<? super T> ob : observers)
        {
View Full Code Here

Examples of org.apache.webbeans.annotation.AnyLiteral

        WebBeansContext.getInstance().getContextFactory().initRequestContext(null);

        LoggedInEvent event = new LoggedInEvent("Gurkan");

        Annotation[] anns = new Annotation[1];
        anns[0] = new AnyLiteral();       

        getManager().fireEvent(event, anns);

        ComponentWithObserves1 instance = getManager().getInstance(component);
View Full Code Here

Examples of org.apache.webbeans.annotation.AnyLiteral

        WebBeansContext.getInstance().getContextFactory().initRequestContext(null);

        LoggedInEvent event = new LoggedInEvent("Mark");

        Annotation[] anns = new Annotation[1];
        anns[0] = new AnyLiteral();

        getManager().fireEvent(event, anns);

        ComponentWithObserves1 instance = getManager().getInstance(component);
View Full Code Here

Examples of org.apache.webbeans.annotation.AnyLiteral

    {
        BeanManagerBean managerComponent = new BeanManagerBean(webBeansContext);

        managerComponent.setImplScopeType(new DependentScopeLiteral());
        managerComponent.addQualifier(new DefaultLiteral());
        managerComponent.addQualifier(new AnyLiteral());
        managerComponent.addApiType(BeanManager.class);
        managerComponent.addApiType(Object.class);

        return managerComponent;
    }
View Full Code Here

Examples of org.apache.webbeans.annotation.AnyLiteral

        instanceBean.getTypes().add(INSTANCE_TYPE);
        instanceBean.getTypes().add(PROVIDER_TYPE);
        instanceBean.addApiType(Object.class);

        instanceBean.addQualifier(new AnyLiteral());
        instanceBean.setImplScopeType(new DependentScopeLiteral());
        instanceBean.setName(null);

        return instanceBean;
    }
View Full Code Here

Examples of org.apache.webbeans.annotation.AnyLiteral

        EventBean<T> eventBean = new EventBean<T>(webBeansContext);

        eventBean.getTypes().add(EVENT_TYPE);
        eventBean.addApiType(Object.class);

        eventBean.addQualifier(new AnyLiteral());
        eventBean.setImplScopeType(new DependentScopeLiteral());
        eventBean.setName(null);

        return eventBean;
    }
View Full Code Here

Examples of org.apache.webbeans.annotation.AnyLiteral

        conversationComp.addApiType(Conversation.class);
        conversationComp.addApiType(ConversationImpl.class);
        conversationComp.addApiType(Object.class);
        conversationComp.setImplScopeType(new RequestedScopeLiteral());
        conversationComp.addQualifier(new DefaultLiteral());
        conversationComp.addQualifier(new AnyLiteral());
        conversationComp.setName("javax.enterprise.context.conversation");

        WebBeansDecoratorConfig.configureDecorators(conversationComp);

        return conversationComp;
View Full Code Here

Examples of org.apache.webbeans.annotation.AnyLiteral

     * filter out all {@code ObserverMethod}s which do not fit the given
     * qualifiers.
     */
    private <T> Set<ObserverMethod<? super T>> filterByQualifiers(Set<ObserverMethod<? super T>> observers, Set<Annotation> eventQualifiers)
    {
        eventQualifiers.add(new AnyLiteral());
               
        Set<ObserverMethod<? super T>> matching = new HashSet<ObserverMethod<? super T>>();

        search: for (ObserverMethod<? super T> ob : observers)
        {
View Full Code Here

Examples of org.apache.webbeans.annotation.AnyLiteral

       
        Annotation[] qualifiers = injectionPoint.getQualifiers().toArray(new Annotation[0]);       
        if(isInstanceOrEventInjection(type))
        {
            qualifiers = new Annotation[1];
            qualifiers[0] = new AnyLiteral();
        }
       
        Set<Bean<?>> beanSet = implResolveByType(type, qualifiers);
       
        if(beanSet.isEmpty())
View Full Code Here

Examples of org.apache.webbeans.annotation.AnyLiteral

        boolean returnAll = false;
       
        if(isInstanceOrEventInjection(injectionPointType))
        {
            qualifiers = new Annotation[1];
            qualifiers[0] = new AnyLiteral();
        }
       
        else
        {
            if (qualifiers.length == 0)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.