Home » apache-openwebbeans-1.0.0-incubating-M3-sources » javax.enterprise.inject.spi » [javadoc | source]
public interface: Bean [javadoc | source]

All Implemented Interfaces:

All Known Implementing Classes:
    Decorator, Interceptor

Reprensts bean instances that are contextual and injectable by the container.
Method from javax.enterprise.inject.spi.Bean Summary:
getBeanClass,   getDeploymentType,   getInjectionPoints,   getName,   getQualifiers,   getScope,   getStereotypes,   getTypes,   isAlternative,   isNullable,   isSerializable
Method from javax.enterprise.inject.spi.Bean Detail:
 abstract public Class<?> getBeanClass()
    Returns class of bean.
 abstract public Class<Annotation> getDeploymentType()
    Returns bean deployment type.
 abstract public Set<InjectionPoint> getInjectionPoints()
    Returns all injection points of this bean.
 abstract public String getName()
    Returns name of a bean.
 abstract public Set<Annotation> getQualifiers()
    Returns qualifiers of a bean.
 abstract public Class<Annotation> getScope()
    Returns scope of a bean.
 public Set<Annotation> getStereotypes()
    Returns bean stereotypes.
 abstract public Set<Type> getTypes()
    Returns api types of a bean.
 public boolean isAlternative()
    Returns true if declares as policy
 abstract public boolean isNullable()
    If bean is nullable return true, false otherwise.

    Nullable means that if producer bean api type is primitive, its nullable property will be false.

 abstract public boolean isSerializable()
    Returns true if bean is capable of serializable, false otherwise.