Top Description Methods
jakarta.enterprise.inject.spi

public Interface ProcessProducerField<T, X>

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

The container fires an event of this type for each enabled producer field, before registering the Bean object. Resources are considered to be producer fields.

If any observer method of a ProcessProducerField 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 field return type found on a disposal method.

public AnnotatedField<T>

Returns:

the AnnotatedField for the producer field being registered
getAnnotatedProducerField
()

Returns the AnnotatedField representing the producer field.

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 field 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
Since
1.1
getAnnotatedProducerFieldback to summary
public AnnotatedField<T> getAnnotatedProducerField()

Returns the AnnotatedField representing the producer field.

Returns:AnnotatedField<T>

the AnnotatedField for the producer field being registered

Exceptions
IllegalStateException:
if called outside of the observer method invocation