com.caucho.config.inject
Class InjectionTargetFilter<T>

java.lang.Object
  extended by com.caucho.config.inject.InjectionTargetFilter<T>
All Implemented Interfaces:
PassivationSetter, InjectionTarget<T>, Producer<T>

public class InjectionTargetFilter<T>
extends java.lang.Object
implements InjectionTarget<T>, PassivationSetter

Adds behavior for an injection target.


Constructor Summary
InjectionTargetFilter(InjectionTarget<T> next, ConfigProgram init)
           
 
Method Summary
 void dispose(T instance)
          Dispose the bean.
 java.util.Set<InjectionPoint> getInjectionPoints()
          Returns the injection points.
 void inject(T instance, CreationalContext<T> ctx)
          Inject the bean.
 void postConstruct(T instance)
          PostConstruct initialization
 void preDestroy(T instance)
          Call pre-destroy
 T produce(CreationalContext<T> ctx)
          Instantiate the bean.
 void setPassivationId(java.lang.String id)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InjectionTargetFilter

public InjectionTargetFilter(InjectionTarget<T> next,
                             ConfigProgram init)
Method Detail

produce

public T produce(CreationalContext<T> ctx)
Description copied from interface: Producer
Instantiate the bean.

Specified by:
produce in interface Producer<T>

getInjectionPoints

public java.util.Set<InjectionPoint> getInjectionPoints()
Description copied from interface: Producer
Returns the injection points.

Specified by:
getInjectionPoints in interface Producer<T>

setPassivationId

public void setPassivationId(java.lang.String id)
Specified by:
setPassivationId in interface PassivationSetter

inject

public void inject(T instance,
                   CreationalContext<T> ctx)
Description copied from interface: InjectionTarget
Inject the bean.

Specified by:
inject in interface InjectionTarget<T>

postConstruct

public void postConstruct(T instance)
Description copied from interface: InjectionTarget
PostConstruct initialization

Specified by:
postConstruct in interface InjectionTarget<T>

preDestroy

public void preDestroy(T instance)
Description copied from interface: InjectionTarget
Call pre-destroy

Specified by:
preDestroy in interface InjectionTarget<T>

dispose

public void dispose(T instance)
Description copied from interface: Producer
Dispose the bean.

Specified by:
dispose in interface Producer<T>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object