Examples of DefaultLiteral


Examples of org.apache.deltaspike.core.api.literal.DefaultLiteral

        return new HashSet<Type>(Arrays.asList(Object.class, CamelContext.class, CdiCamelContext.class));
    }

    @Override
    public Set<Annotation> getQualifiers() {
        return new HashSet<Annotation>(Arrays.asList(new DefaultLiteral(), new AnyLiteral()));
    }
View Full Code Here

Examples of org.apache.deltaspike.core.api.literal.DefaultLiteral

        this.beanClass = beanClass;
        this.name = name;

        if (qualifiers == null)
        {
            this.qualifiers = Collections.<Annotation>singleton(new DefaultLiteral());

            LOG.finest("No qualifers provided for bean class " + beanClass + ", using singleton set of @Default");
        }
        else
        {
View Full Code Here

Examples of org.apache.deltaspike.core.api.literal.DefaultLiteral

        {
            this.types.add(i);
        }
        if (qualifiers.isEmpty())
        {
            qualifiers.add(new DefaultLiteral());
        }
        qualifiers.add(new AnyLiteral());
        this.id = ImmutableBeanWrapper.class.getName() + ":" + Annotateds.createTypeId(type);
        return this;
    }
View Full Code Here

Examples of org.apache.deltaspike.core.api.literal.DefaultLiteral

                stereotypes.add(annotation.annotationType());
            }
        }
        if (qualifiers.isEmpty())
        {
            qualifiers.add(new DefaultLiteral());
        }
        qualifiers.add(new AnyLiteral());
        this.name = "".equals(name) ? null : name;
        this.scope = scope;
        alternative = type.isAnnotationPresent(Alternative.class);
View Full Code Here

Examples of org.apache.deltaspike.core.api.literal.DefaultLiteral

                result = BeanProvider.getContextualReference(emrc).resolveEntityManager();
            }
        }
        else
        {
            result = entityManager.select(new DefaultLiteral()).get();
        }
        if (repository.hasEntityManagerFlushMode())
        {
            result.setFlushMode(repository.getEntityManagerFlushMode());
        }
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.core.impl.util.DefaultLiteral

    }

    private void resolveDefaultEntityManager()
    {
        EntityManager em = BeanManagerProvider.getInstance().
                getContextualReference(EntityManager.class, new DefaultLiteral());
        Assert.assertNotNull(em);
        EntityTransaction et = em.getTransaction();
        Assert.assertNotNull(et);
    }
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

   
    public InjectionPointBean(WebBeansContext webBeansContext)
    {
        super(WebBeansType.INJECTIONPOINT,InjectionPoint.class, webBeansContext);
       
        addQualifier(new DefaultLiteral());
        setImplScopeType(new DependentScopeLiteral());
        addApiType(InjectionPoint.class);
        addApiType(Object.class);
    }
View Full Code Here

Examples of org.apache.webbeans.annotation.DefaultLiteral

                    injectField(field, instance, creationalContext);  
                }
                //InjectionPoint.
                else
                {
                    Bean<?> injectionPointBean = getManager().getBeans(InjectionPoint.class, new DefaultLiteral())
                                                              .iterator().next();
                    Object reference = getManager().getReference(injectionPointBean, InjectionPoint.class,
                                             getManager().createCreationalContext(injectionPointBean));
                   
                    setField(instance, field, reference);
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

        WebBeansContext webBeansContext = WebBeansContext.getInstance();
        webBeansContext.getContextFactory().initApplicationContext(null);

        @SuppressWarnings("unchecked")
        Bean<ExternalTestScopedBean> bean = (Bean<ExternalTestScopedBean>) getBeanManager().getBeans(ExternalTestScopedBean.class,
                                                                                                     new DefaultLiteral()).iterator().next();
       
        ExternalTestScopedBean instance = (ExternalTestScopedBean) getBeanManager().getReference(bean, ExternalTestScopedBean.class,
                                                                                                 getBeanManager().createCreationalContext(bean));
       
        Assert.assertNotNull(instance);
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.