public class SingletonComponent<X> extends java.lang.Object implements InjectionTarget<X>
| Constructor and Description |
|---|
SingletonComponent(SingletonProxyFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(X instance)
Call pre-destroy
|
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the injection points.
|
void |
inject(X instance,
CreationalContext<X> ctx)
Inject the bean.
|
void |
postConstruct(X instance)
PostConstruct initialization
|
void |
preDestroy(X instance)
Call destroy
|
X |
produce(CreationalContext<X> env)
Creates a new instance of the component
|
public SingletonComponent(SingletonProxyFactory factory)
public X produce(CreationalContext<X> env)
public void inject(X instance, CreationalContext<X> ctx)
inject in interface InjectionTarget<X>public void postConstruct(X instance)
postConstruct in interface InjectionTarget<X>public void dispose(X instance)
public void preDestroy(X instance)
preDestroy in interface InjectionTarget<X>public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in interface Producer<X>