Top Description Methods
javax.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 javax.enterprise.inject.spi.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.

Author
David Allen

Method Summary

Modifier and TypeMethod and Description
public AnnotatedParameter<T>

Returns:

the disposal method's javax.enterprise.inject.spi.AnnotatedParameter
getAnnotatedDisposedParameter
()

Returns the javax.enterprise.inject.spi.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 javax.enterprise.inject.spi.AnnotatedField for the producer field being registered
getAnnotatedProducerField
()

Returns the javax.enterprise.inject.spi.AnnotatedField representing the producer field.

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

Method Detail

getAnnotatedDisposedParameterback to summary
public AnnotatedParameter<T> getAnnotatedDisposedParameter()

Returns the javax.enterprise.inject.spi.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 javax.enterprise.inject.spi.AnnotatedParameter

Exceptions
IllegalStateException:
if called outside of the observer method invocation
Since
1.1
getAnnotatedProducerFieldback to summary
public AnnotatedField<T> getAnnotatedProducerField()

Returns the javax.enterprise.inject.spi.AnnotatedField representing the producer field.

Returns:AnnotatedField<T>

the javax.enterprise.inject.spi.AnnotatedField for the producer field being registered

Exceptions
IllegalStateException:
if called outside of the observer method invocation