@Module public class CandiProducer<X> extends java.lang.Object implements InjectionTarget<X>
Constructor and Description |
---|
CandiProducer(Bean<X> bean,
java.lang.Class<X> instanceClass,
java.lang.reflect.Constructor<X> javaCtor,
Arg[] args,
ConfigProgram[] injectProgram,
ConfigProgram[] initProgram,
ConfigProgram[] destroyProgram,
java.util.Set<InjectionPoint> injectionPointSet) |
Modifier and Type | Method and Description |
---|---|
void |
bind() |
void |
dispose(X instance)
Dispose the bean.
|
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the injection points.
|
ConfigProgram[] |
getPostConstructProgram() |
void |
inject(X instance,
CreationalContext<X> env)
Inject the bean.
|
void |
postConstruct(X instance)
PostConstruct initialization
|
void |
preDestroy(X instance)
Call pre-destroy
|
X |
produce(CreationalContext<X> ctx)
Instantiate the bean.
|
void |
setPostConstructProgram(ConfigProgram[] initProgram) |
java.lang.String |
toString() |
public CandiProducer(Bean<X> bean, java.lang.Class<X> instanceClass, java.lang.reflect.Constructor<X> javaCtor, Arg[] args, ConfigProgram[] injectProgram, ConfigProgram[] initProgram, ConfigProgram[] destroyProgram, java.util.Set<InjectionPoint> injectionPointSet)
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface Producer<X>
public void bind()
public X produce(CreationalContext<X> ctx)
Producer
public void inject(X instance, CreationalContext<X> env)
InjectionTarget
inject
in interface InjectionTarget<X>
public ConfigProgram[] getPostConstructProgram()
public void setPostConstructProgram(ConfigProgram[] initProgram)
public void postConstruct(X instance)
InjectionTarget
postConstruct
in interface InjectionTarget<X>
public void preDestroy(X instance)
preDestroy
in interface InjectionTarget<X>
public void dispose(X instance)
Producer
public java.lang.String toString()
toString
in class java.lang.Object