Top Description Methods
javax.enterprise.inject.spi

public Interface ProcessProducerMethod<T, X>

extends ProcessBean<X>
Type Parameters
<T>
The return type of the producer method
<X>
The class of the bean declaring the producer method

The container fires an event of this type for each enabled producer method, before registering the javax.enterprise.inject.spi.Bean object.

If any observer method of a ProcessProducerMethod 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 method return type found on a disposal method.

public AnnotatedMethod<T>

Returns:

the javax.enterprise.inject.spi.AnnotatedMethod for the producer method being registered
getAnnotatedProducerMethod
()

Returns the javax.enterprise.inject.spi.AnnotatedMethod representing the producer method.

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 method 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
getAnnotatedProducerMethodback to summary
public AnnotatedMethod<T> getAnnotatedProducerMethod()

Returns the javax.enterprise.inject.spi.AnnotatedMethod representing the producer method.

Returns:AnnotatedMethod<T>

the javax.enterprise.inject.spi.AnnotatedMethod for the producer method being registered

Exceptions
IllegalStateException:
if called outside of the observer method invocation