Package javax.enterprise.inject.spi
Interface Bean<T>
-
- Type Parameters:
T
- bean representation type
- All Superinterfaces:
BeanAttributes<T>
,Contextual<T>
- All Known Subinterfaces:
Decorator<T>
,Interceptor<T>
public interface Bean<T> extends Contextual<T>, BeanAttributes<T>
Reprensts bean instances that are contextual and injectable by the container.- Version:
- $Rev$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.Class<?>
getBeanClass()
Returns class of bean.java.util.Set<InjectionPoint>
getInjectionPoints()
Returns all injection points of this bean.boolean
isNullable()
Deprecated.since CDI-1.1.-
Methods inherited from interface javax.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
-
-
-
-
Method Detail
-
getInjectionPoints
java.util.Set<InjectionPoint> getInjectionPoints()
Returns all injection points of this bean.- Returns:
- injection points
-
getBeanClass
java.lang.Class<?> getBeanClass()
Returns class of bean.- Returns:
- class of bean that it represents
-
isNullable
boolean isNullable()
Deprecated.since CDI-1.1. This should be ignored by the container from now on.If bean is nullable return true, false otherwise.Nullable means that if producer bean api type is primitive, its nullable property will be false.
- Returns:
- true if bean is nullable.
-
-