javax.enterprise.inject.spi
Interface Bean<T>

All Superinterfaces:
Contextual<T>
All Known Subinterfaces:
Decorator<T>, Interceptor<T>
All Known Implementing Classes:
AbstractBean, AbstractInterceptorBean, AbstractIntrospectedBean, AbstractSingletonBean, BeanAdapter, BeanWrapper, CauchoBean, DecoratorBean, DelegateProxyBean, EventBeanImpl, InjectionBean, InjectionPointBean, InjectionPointStandardBean, InstanceBeanImpl, InterceptorBean, InterceptorRuntimeBean, InterceptorSelfBean, ManagedBeanImpl, ManagedSingletonBean, NewBean, ProducesFieldBean, ProducesMethodBean, SessionBeanImpl, SessionRegistrationBean, SingletonBean, StatefulBeanImpl, StatelessBeanImpl, XmlBean, XmlManagedBeanImpl

public interface Bean<T>
extends Contextual<T>

Internal implementation for a Bean


Method Summary
 java.lang.Class<?> getBeanClass()
          Returns the bean class.
 java.util.Set<InjectionPoint> getInjectionPoints()
          Returns the set of injection points, for validation.
 java.lang.String getName()
          Returns the bean's name or null if the bean does not have a primary name.
 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
          Returns the bean's qualifier annotations.
 java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
          Returns the bean's scope type.
 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
          Returns the stereotypes that the bean uses for priority
 java.util.Set<java.lang.reflect.Type> getTypes()
          Returns the types that the bean exports for bindings.
 boolean isAlternative()
          True for a disabled alternative.
 boolean isNullable()
          Returns true if the bean can be null
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Method Detail

isAlternative

boolean isAlternative()
True for a disabled alternative.


getBeanClass

java.lang.Class<?> getBeanClass()
Returns the bean class.


getInjectionPoints

java.util.Set<InjectionPoint> getInjectionPoints()
Returns the set of injection points, for validation.


getName

java.lang.String getName()
Returns the bean's name or null if the bean does not have a primary name.


isNullable

boolean isNullable()
Returns true if the bean can be null


getQualifiers

java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Returns the bean's qualifier annotations.


getScope

java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Returns the bean's scope type.


getStereotypes

java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
Returns the stereotypes that the bean uses for priority


getTypes

java.util.Set<java.lang.reflect.Type> getTypes()
Returns the types that the bean exports for bindings.