Package javax.enterprise.inject.spi
Interface ProcessProducerField<T,X>
- Type Parameters:
T
- The type of the producer fieldX
- The class of the bean declaring the producer field
- All Superinterfaces:
ProcessBean<X>
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.
-
Method Summary
Modifier and TypeMethodDescriptionReturns theAnnotatedParameter
for any matching injection point of the same type as the producer field return type found on a disposal method.Returns theAnnotatedField
representing the producer field.Methods inherited from interface javax.enterprise.inject.spi.ProcessBean
addDefinitionError, getAnnotated, getBean
-
Method Details
-
getAnnotatedProducerField
AnnotatedField<T> getAnnotatedProducerField()Returns theAnnotatedField
representing the producer field.- Returns:
- the
AnnotatedField
for the producer field being registered
-
getAnnotatedDisposedParameter
AnnotatedParameter<T> getAnnotatedDisposedParameter()Returns theAnnotatedParameter
for any matching injection point of the same type as the producer field return type found on a disposal method.- Returns:
- the disposal method's
AnnotatedParameter
- Since:
- 1.1
-