Home » apache-openwebbeans-1.0.0-incubating-M3-sources » javax.enterprise.inject.spi » [javadoc | source]
javax.enterprise.inject.spi
public interface: Producer [javadoc | source]

All Known Implementing Classes:
    InjectionTarget

Provides a generic operation for producing an instance of a type.
Method from javax.enterprise.inject.spi.Producer Summary:
dispose,   getInjectionPoints,   produce
Method from javax.enterprise.inject.spi.Producer Detail:
 public  void dispose(T instance)
    Its result depends on bean type.

    • Bean Class : Does nothing.
    • Producer Method : Calls disposer method or any other cleanup.

 public Set<InjectionPoint> getInjectionPoints()
    Its result depends on bean type.

    • Bean Class : Returns the set of InjectionPoint objects representing all injected fields, bean constructor parameters and initializer method parameters.
    • Producer Method : Returns the set of InjectionPoint objects representing all parameters of the producer method.

 public T produce(CreationalContext<T> creationalContext)
    Its result depends on bean type.

    • Bean Class : It calls the constructor annotated with Initializer if it exists, or the constructor with no parameters otherwise.
    • Producer Method or Field : Calls the producer method on, or accesses the producer field of, a contextual instance of the most specialized bean that specializes the bean that declares the producer method