jfun.yan.xml.nuts
Class BindNut
java.lang.Object
jfun.yan.xml.nut.Nut
jfun.yan.xml.nut.ComponentNut
jfun.yan.xml.nuts.DelegatingNut
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
| 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 |
BindNut
public BindNut()
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