Package jakarta.enterprise.inject.spi
Interface ProcessProducerField<T,X>
- 
- Type Parameters:
- T- The type of the producer field
- X- The class of the bean declaring the producer field
 - All Superinterfaces:
- ProcessBean<X>
 
 public interface ProcessProducerField<T,X> extends ProcessBean<X> The container fires an event of this type for each enabled producer field, before registering the Beanobject. Resources are considered to be producer fields.If any observer method of a ProcessProducerFieldevent 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 SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotatedParameter<T>getAnnotatedDisposedParameter()Returns theAnnotatedParameterfor any matching injection point of the same type as the producer field return type found on a disposal method.AnnotatedField<T>getAnnotatedProducerField()Returns theAnnotatedFieldrepresenting the producer field.- 
Methods inherited from interface jakarta.enterprise.inject.spi.ProcessBeanaddDefinitionError, getAnnotated, getBean
 
- 
 
- 
- 
- 
Method Detail- 
getAnnotatedProducerFieldAnnotatedField<T> getAnnotatedProducerField() Returns theAnnotatedFieldrepresenting the producer field.- Returns:
- the AnnotatedFieldfor the producer field being registered
- Throws:
- IllegalStateException- if called outside of the observer method invocation
 
 - 
getAnnotatedDisposedParameterAnnotatedParameter<T> getAnnotatedDisposedParameter() Returns theAnnotatedParameterfor 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
- Throws:
- IllegalStateException- if called outside of the observer method invocation
- Since:
- 1.1
 
 
- 
 
-