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);
}