com.caucho.config.inject
Class AbstractInjectionTarget<X>

java.lang.Object
  extended by com.caucho.config.inject.AbstractInjectionTarget<X>
All Implemented Interfaces:
InjectionTarget<X>, Producer<X>

public abstract class AbstractInjectionTarget<X>
extends java.lang.Object
implements InjectionTarget<X>

Abstract introspected view of a Bean injectible field


Constructor Summary
AbstractInjectionTarget()
           
 
Method Summary
 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
abstract  X produce(CreationalContext<X> ctx)
          Instantiate the bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInjectionTarget

public AbstractInjectionTarget()
Method Detail

produce

public abstract X produce(CreationalContext<X> ctx)
Instantiate the bean.

Specified by:
produce in interface Producer<X>

inject

public void inject(X instance,
                   CreationalContext<X> ctx)
Inject the bean.

Specified by:
inject in interface InjectionTarget<X>

postConstruct

public void postConstruct(X instance)
PostConstruct initialization

Specified by:
postConstruct in interface InjectionTarget<X>

dispose

public void dispose(X instance)
Call pre-destroy

Specified by:
dispose in interface Producer<X>

preDestroy

public void preDestroy(X instance)
Call destroy

Specified by:
preDestroy in interface InjectionTarget<X>

getInjectionPoints

public java.util.Set<InjectionPoint> getInjectionPoints()
Returns the injection points.

Specified by:
getInjectionPoints in interface Producer<X>