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

Type Parameters:
T - bean representation type
All Superinterfaces:
Contextual<T>
All Known Subinterfaces:
Decorator<T>, Interceptor<T>

public interface Bean<T>
extends Contextual<T>

Reprensts bean instances that are contextual and injectable by the container.

Version:
$Rev$ $Date$

Method Summary
 Class<?> getBeanClass()
          Returns class of bean.
 Set<InjectionPoint> getInjectionPoints()
          Returns all injection points of this bean.
 String getName()
          Returns name of a bean.
 Set<Annotation> getQualifiers()
          Returns qualifiers of a bean.
 Class<? extends Annotation> getScope()
          Returns scope of a bean.
 Set<Class<? extends Annotation>> getStereotypes()
          Returns bean stereotypes.
 Set<Type> getTypes()
          Returns api types of a bean.
 boolean isAlternative()
          Returns true if declares as policy
 boolean isNullable()
          If bean is nullable return true, false otherwise.
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Method Detail

getTypes

Set<Type> getTypes()
Returns api types of a bean.

Returns:
api types of a bean

getQualifiers

Set<Annotation> getQualifiers()
Returns qualifiers of a bean.

Returns:
qualifiers of a bean

getScope

Class<? extends Annotation> getScope()
Returns scope of a bean.

Returns:
scope

getName

String getName()
Returns name of a bean.

Returns:
name of a bean

isNullable

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.

Returns:
true if bean is nullable.

getInjectionPoints

Set<InjectionPoint> getInjectionPoints()
Returns all injection points of this bean.

Returns:
injection points

getBeanClass

Class<?> getBeanClass()
Returns class of bean.

Returns:
class of bean that it represents

getStereotypes

Set<Class<? extends Annotation>> getStereotypes()
Returns bean stereotypes.

Returns:
bean stereotypes

isAlternative

boolean isAlternative()
Returns true if declares as policy

Returns:
true if declares as policy


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.