Examples of DefaultLiteral


Examples of org.apache.webbeans.annotation.DefaultLiteral

     */
    @SuppressWarnings("unchecked")
    public Conversation getConversationBeanReference()
    {
        BeanManager beanManager = BeanManagerImpl.getManager();
        Bean<Conversation> bean = (Bean<Conversation>)beanManager.getBeans(Conversation.class, new DefaultLiteral()).iterator().next();
        Conversation conversation =(Conversation) beanManager.getReference(bean, Conversation.class, beanManager.createCreationalContext(bean));

        return conversation;
    }
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

                boolean observesAnnotation = false;

                if (annot.length == 0)
                {
                    annot = new Annotation[1];
                    annot[0] = new DefaultLiteral();
                }
                else
                {
                    for (Annotation observersAnnot : annot)
                    {
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

                    if(this.injectionOwnerBean instanceof ProducerMethodBean)
                    {
                        if(parameter.getBaseType().equals(InjectionPoint.class))
                        {
                            BeanManager manager = BeanManagerImpl.getManager();
                            Bean<?> injectionPointBean = manager.getBeans(InjectionPoint.class, new DefaultLiteral()).iterator().next();
                            Object reference = manager.getReference(injectionPointBean, InjectionPoint.class, manager.createCreationalContext(injectionPointBean));
                           
                            this.dependentParameters.put(injectionPointBean, reference);
                            list.add(reference);
                           
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

            listAnnot.add(ann);
        }

        if (listAnnot.isEmpty())
        {
            listAnnot.add(new DefaultLiteral());
        }

        while (it.hasNext())
        {
            decorator = (WebBeansDecorator<?>) it.next();
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

        else
        {
            if (qualifiers.length == 0)
            {
                qualifiers = new Annotation[1];
                qualifiers[0] = new DefaultLiteral();
                currentQualifier = true;
            }                       
        }
       
        if (injectionPointType.equals(Object.class) && currentQualifier)
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

       

        // No-binding annotation
        if (component.getQualifiers().size() == 0 )
        {
            component.addQualifier(new DefaultLiteral());
        }
        else if(component.getQualifiers().size() == 1)
        {
            Annotation annot = component.getQualifiers().iterator().next();
            if(annot.annotationType().equals(Named.class))
            {
                component.addQualifier(new DefaultLiteral());
            }
        }
       
        //Add @Any support
        if(!AnnotationUtil.hasAnyQualifier(component))
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

             * .lang.String)
             */
            @Override
            public void sendRedirect(String location) throws IOException
            {
                Bean<?> bean = BeanManagerImpl.getManager().resolveByType(Conversation.class, new DefaultLiteral()).iterator().next();
                Conversation conversation = (Conversation)BeanManagerImpl.getManager().getInstance(bean,null);

                String path = location;

                if (conversation != null)
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

    public UserTransactionBean()
    {
        super(WebBeansType.USERTRANSACTION, UserTransaction.class);
        addApiType(Object.class);
        addApiType(UserTransaction.class);
        addQualifier(new DefaultLiteral());
        setImplScopeType(new DependentScopeLiteral());
    }
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

    public ValidatorFactoryBean()
    {
        super(WebBeansType.VALIDATIONFACT, ValidatorFactory.class);
        addApiType(Object.class);
        addApiType(ValidatorFactory.class);
        addQualifier(new DefaultLiteral());
        setImplScopeType(new DependentScopeLiteral());
    }
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

    public ValidatorBean()
    {
        super(WebBeansType.VALIDATION, Validator.class);
        addApiType(Object.class);
        addApiType(Validator.class);
        addQualifier(new DefaultLiteral());
        setImplScopeType(new DependentScopeLiteral());
    }
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.