T
- The type of the producer fieldX
- The class of the bean declaring the producer fieldpublic interface ProcessProducerField<T,X> extends 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.
Modifier and Type | Method and Description |
---|---|
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. |
AnnotatedField<T> |
getAnnotatedProducerField()
Returns the
AnnotatedField representing the producer field. |
addDefinitionError, getAnnotated, getBean
AnnotatedField<T> getAnnotatedProducerField()
AnnotatedField
representing the producer field.AnnotatedField
for the producer field being registeredIllegalStateException
- if called outside of the observer method invocationAnnotatedParameter<T> getAnnotatedDisposedParameter()
AnnotatedParameter
for any matching injection point of the same type as
the producer field return type found on a disposal method.AnnotatedParameter
IllegalStateException
- if called outside of the observer method invocationCopyright © 2017 JBoss by Red Hat. All rights reserved.