| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProducerBean.AbstractProducer() |
| Modifier and Type | Method and Description |
|---|---|
Set<InjectionPoint> |
getInjectionPoints()
Returns the set of all
InjectionPoints. |
T |
produce(CreationalContext<T> ctx)
Causes an instance to be produced via the
Producer. |
protected abstract T |
produce(Object receiver,
CreationalContext<T> ctx) |
protected AbstractProducerBean.AbstractProducer()
public T produce(CreationalContext<T> ctx)
Producer
Causes an instance to be produced via the Producer.
If the Producer represents a class, this will invoke the
constructor annotated Inject if it exists, or the
constructor with no parameters otherwise. If the class has interceptors,
produce() is responsible for building the interceptors and
decorators of the instance.
If the Producer represents a producer field or method, this will
invoke the producer method on, or access the producer field of, a
contextual instance of the bean that declares the producer.
produce in interface Producer<T>ctx - The CreationalContext to
use for the produced objectpublic Set<InjectionPoint> getInjectionPoints()
Producer
Returns the set of all InjectionPoints. If the
Producer represents a class, then this returns returns the set of
InjectionPoint objects representing all injected fields, bean
constructor parameters and initializer method parameters. For a producer
method, this returns the set of InjectionPoint objects
representing all parameters of the producer method.
getInjectionPoints in interface Producer<T>protected abstract T produce(Object receiver, CreationalContext<T> ctx)
Copyright © 2013 Seam Framework. All Rights Reserved.