Top Description Methods
jakarta.enterprise.inject.spi

public Interface ProcessManagedBean<X>

extends ProcessBean<X>
Known Direct Subinterfaces
jakarta.enterprise.inject.spi.ProcessSessionBean
Type Parameters
<X>
The class of the bean
Imports
jakarta.enterprise.invoke.Invoker, .InvokerBuilder

The container fires an event of this type for each enabled managed bean, before registering the Bean object.

If any observer method of a ProcessManagedBean event throws an exception, the exception is treated as a definition error by the container.

CDI Lite implementations are not required to provide support for Portable Extensions.

Author
David Allen

Method Summary

Modifier and TypeMethod and Description
public InvokerBuilder<Invoker<X, ?>>

Returns:

the invoker builder, never null
createInvoker
(AnnotatedMethod<? super X>
method of the bean being registered, must not be null
method
)

Returns a new InvokerBuilder for given method.

public AnnotatedType<X>

Returns:

the AnnotatedType for the bean being registered
getAnnotatedBeanClass
()

Returns the AnnotatedType representing the bean class.

Inherited from jakarta.enterprise.inject.spi.ProcessBean:
addDefinitionErrorgetAnnotatedgetBean

Method Detail

createInvokerback to summary
public InvokerBuilder<Invoker<X, ?>> createInvoker(AnnotatedMethod<? super X> method)

Returns a new InvokerBuilder for given method. The builder eventually produces an invoker for the given method.

The method must be declared on the bean class or inherited from a supertype of the bean class of the bean being registered, otherwise an exception is thrown.

Parameters
method:AnnotatedMethod<? super X>

method of the bean being registered, must not be null

Returns:InvokerBuilder<Invoker<X, ?>>

the invoker builder, never null

Since
4.1
getAnnotatedBeanClassback to summary
public AnnotatedType<X> getAnnotatedBeanClass()

Returns the AnnotatedType representing the bean class.

Returns:AnnotatedType<X>

the AnnotatedType for the bean being registered

Exceptions
IllegalStateException:
if called outside of the observer method invocation