Top Description Methods
jakarta.enterprise.inject.spi

public Interface ProcessProducerMethod<T, X>

extends ProcessBean<X>
Type Parameters
<T>
The return type of the producer method
<X>
The class of the bean declaring the producer method

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

If any observer method of a ProcessProducerMethod 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 AnnotatedParameter<T>

Returns:

the disposal method's AnnotatedParameter
getAnnotatedDisposedParameter
()

Returns the AnnotatedParameter for any matching injection point of the same type as the producer method return type found on a disposal method.

public AnnotatedMethod<T>

Returns:

the AnnotatedMethod for the producer method being registered
getAnnotatedProducerMethod
()

Returns the AnnotatedMethod representing the producer method.

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

Method Detail

getAnnotatedDisposedParameterback to summary
public AnnotatedParameter<T> getAnnotatedDisposedParameter()

Returns the AnnotatedParameter for any matching injection point of the same type as the producer method return type found on a disposal method.

Returns:AnnotatedParameter<T>

the disposal method's AnnotatedParameter

Exceptions
IllegalStateException:
if called outside of the observer method invocation
getAnnotatedProducerMethodback to summary
public AnnotatedMethod<T> getAnnotatedProducerMethod()

Returns the AnnotatedMethod representing the producer method.

Returns:AnnotatedMethod<T>

the AnnotatedMethod for the producer method being registered

Exceptions
IllegalStateException:
if called outside of the observer method invocation