Top Description Methods
jakarta.enterprise.inject.spi

public Interface Bean<T>

extends Contextual<T>, BeanAttributes<T>
Known Direct Subinterfaces
jakarta.enterprise.inject.spi.Decorator, jakarta.enterprise.inject.spi.Interceptor
Type Parameters
<T>
the class of the bean instance
Imports
java.util.Set, jakarta.enterprise.context.spi.Contextual, .CreationalContext

Represents an enabled bean. This interface defines everything the container needs to manage instances of the bean.

Authors
Gavin King, David Allen

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

the bean class
getBeanClass
()

The bean class of the managed bean or session bean or of the bean that declares the producer method or field.

public Set<InjectionPoint>

Returns:

the set of injection points of the bean
getInjectionPoints
()

Obtains the InjectionPoint objects representing injection points of the bean, that will be validated by the container at initialization time.

Inherited from jakarta.enterprise.context.spi.Contextual:
createdestroy
Inherited from jakarta.enterprise.inject.spi.BeanAttributes:
getNamegetQualifiersgetScopegetStereotypesgetTypesisAlternative

Method Detail

getBeanClassback to summary
public Class<?> getBeanClass()

The bean class of the managed bean or session bean or of the bean that declares the producer method or field.

Returns:Class<?>

the bean class

getInjectionPointsback to summary
public Set<InjectionPoint> getInjectionPoints()

Obtains the InjectionPoint objects representing injection points of the bean, that will be validated by the container at initialization time.

Returns:Set<InjectionPoint>

the set of injection points of the bean