com.caucho.config.xml
Class XmlInjectionTarget<X>

java.lang.Object
  extended by com.caucho.config.xml.XmlInjectionTarget<X>
All Implemented Interfaces:
DisplayableInjectionTarget, InjectionTarget<X>, Producer<X>

@Module
public class XmlInjectionTarget<X>
extends java.lang.Object
implements InjectionTarget<X>, DisplayableInjectionTarget

Internal implementation for a Bean


Constructor Summary
XmlInjectionTarget(ManagedBeanImpl<X> bean, java.lang.reflect.Constructor<X> ctor, Arg<X>[] newProgram, ConfigProgram[] injectProgram)
           
 
Method Summary
 void dispose(X instance)
          Call destroy
 java.util.Set<InjectionPoint> getInjectionPoints()
          Returns the injection points.
 void inject(X instance, CreationalContext<X> env)
          Inject the bean.
 void postConstruct(X instance)
          PostConstruct initialization
 void preDestroy(X instance)
          Call destroy
 X produce(CreationalContext<X> context)
          Instantiate the bean.
 java.lang.String toDisplayString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlInjectionTarget

public XmlInjectionTarget(ManagedBeanImpl<X> bean,
                          java.lang.reflect.Constructor<X> ctor,
                          Arg<X>[] newProgram,
                          ConfigProgram[] injectProgram)
Method Detail

produce

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

Specified by:
produce in interface Producer<X>

inject

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

Specified by:
inject in interface InjectionTarget<X>

postConstruct

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

Specified by:
postConstruct in interface InjectionTarget<X>

preDestroy

public void preDestroy(X instance)
Call destroy

Specified by:
preDestroy in interface InjectionTarget<X>

dispose

public void dispose(X instance)
Call destroy

Specified by:
dispose in interface Producer<X>

getInjectionPoints

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

Specified by:
getInjectionPoints in interface Producer<X>

toDisplayString

public java.lang.String toDisplayString()
Specified by:
toDisplayString in interface DisplayableInjectionTarget