jfun.yan.xml.nuts.optional
Class InjectNut

java.lang.Object
  extended by jfun.yan.xml.nut.Nut
      extended by jfun.yan.xml.nut.ComponentNut
          extended by jfun.yan.xml.nuts.DelegatingNut
              extended by jfun.yan.xml.nuts.optional.InjectNut
All Implemented Interfaces:
java.io.Serializable

public class InjectNut
extends DelegatingNut

This Nut class instantiates a proxy object that implements a given interface.

Return values of the methods defined in this interface are subject to automatic dependency injection.

The injection logic is defined by the "binder" attribute that references a Binder object.

Author:
Ben Yu Nov 10, 2005 12:17:26 AM
See Also:
Serialized Form

Constructor Summary
InjectNut()
           
 
Method Summary
 Component eval()
           
 java.lang.Class getInjectee()
           
 Binder getInjection()
           
 java.lang.Class getType()
           
 void setInjectee(java.lang.Class injectee)
           
 void setInjection(Binder injection)
           
 void setType(java.lang.Class itf)
           
 
Methods inherited from class jfun.yan.xml.nuts.DelegatingNut
add, delegateTo, getComponent, getMandatory, setComponent
 
Methods inherited from class jfun.yan.xml.nut.Nut
cast, checkDuplicate, checkMandatory, checkMandatory, convert, getComponentClassLoader, getId, getNutClassLoader, getNutEnvironment, getParameterWiring, getPropertyWiring, getSequenceNumber, getTagLocation, getTagName, initGloballyDefined, initNutEnvironment, initSequenceNumber, initTagLocation, initTagName, isGloballyDefined, raise, raise, register, registerEagerInstantiation, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InjectNut

public InjectNut()
Method Detail

getInjectee

public java.lang.Class getInjectee()

setInjectee

public void setInjectee(java.lang.Class injectee)

getInjection

public Binder getInjection()

setInjection

public void setInjection(Binder injection)

getType

public java.lang.Class getType()

setType

public void setType(java.lang.Class itf)

eval

public Component eval()
Specified by:
eval in class ComponentNut