javax.enterprise.inject.spi
Interface ProcessProducerField<T,X>

Type Parameters:
T - The class of the producer field
X - The class of the bean representing 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 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
 AnnotatedField<T> getAnnotatedProducerField()
          Returns the AnnotatedField representing the producer field.
 
Methods inherited from interface javax.enterprise.inject.spi.ProcessBean
addDefinitionError, getAnnotated, getBean
 

Method Detail

getAnnotatedProducerField

AnnotatedField<T> getAnnotatedProducerField()
Returns the AnnotatedField representing the producer field.

Returns:
the AnnotatedField for the producer field being registered


Submit a bug or feature

Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 4-June-2010 04:34