jfun.yan.xml.nuts
Class BindNut

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.BindNut
All Implemented Interfaces:
java.io.Serializable

public class BindNut
extends DelegatingNut

Nut class for <bind> tag.

The "followup" attribute specifies if the binder is only intended to do some side-effect, and the object returned by the bound component is still used as return value.

"followup"="true" allows mutual dependency on singleton because the return object can be cached in the singleton before the mutaion is executed.

default value for "followup" is false.

Author:
Ben Yu Nov 9, 2005 11:41:18 PM
See Also:
Serialized Form

Constructor Summary
BindNut()
           
 
Method Summary
 Component eval()
           
 Binder getBinder()
           
 boolean isFollowup()
           
 void setBinder(Binder binder)
           
 void setFollowup(boolean followup)
           
 
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

BindNut

public BindNut()
Method Detail

isFollowup

public boolean isFollowup()

setFollowup

public void setFollowup(boolean followup)

getBinder

public Binder getBinder()

setBinder

public void setBinder(Binder binder)

eval

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