Package org.jboss.weld.literal

Examples of org.jboss.weld.literal.NewLiteral


    public static <T> BeanAttributes<T> forSessionBean(EnhancedAnnotatedType<T> annotated, InternalEjbDescriptor<?> descriptor, BeanManagerImpl manager) {
        return new BeanAttributesBuilder<T>(annotated, Reflections.<InternalEjbDescriptor<T>> cast(descriptor), manager).build();
    }

    public static <T> BeanAttributes<T> forNewBean(Set<Type> types, final Class<?> javaClass) {
        Set<Annotation> qualifiers = Collections.<Annotation>singleton(new NewLiteral(javaClass));
        return new ImmutableBeanAttributes<T>(Collections.<Class<? extends Annotation>> emptySet(), false, null, qualifiers, types, Dependent.class);
    }
View Full Code Here


        if (annotationType.equals(New.class)) {
            New newQualifier = New.class.cast(qualifier);
            if (newQualifier.value().equals(New.class) && rawType == null) {
                throw new IllegalStateException("Cannot transform @New when there is no known raw type");
            } else if (newQualifier.value().equals(New.class)) {
                qualifier = new NewLiteral(rawType);
                qualifierInstance = QualifierInstance.of(qualifier, store);
            }
        }

        checkQualifier(qualifier, qualifierInstance, annotationType);
View Full Code Here

TOP

Related Classes of org.jboss.weld.literal.NewLiteral

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.