jfun.yan.xml.nuts
Class MethodNut

java.lang.Object
  extended by jfun.yan.xml.nut.Nut
      extended by jfun.yan.xml.nut.ComponentNut
          extended by jfun.yan.xml.nuts.ArgumentsAndPropertiesNut
              extended by jfun.yan.xml.nuts.MethodNut
All Implemented Interfaces:
java.io.Serializable, LifecycleDeclaration
Direct Known Subclasses:
AspectjNut, SpringMethodNut, WebMethodNut

public class MethodNut
extends ArgumentsAndPropertiesNut
implements LifecycleDeclaration

Nut class for <method> tag.

Author:
Ben Yu Nov 9, 2005 11:42:15 PM
See Also:
Serialized Form

Constructor Summary
MethodNut()
           
 
Method Summary
 void add(Component cn)
           
 Component eval()
           
protected  Component evaluateNoLifecycle()
          Evaluate the Component without applying life cycle.
 java.lang.String getDisposer()
           
 java.lang.String getInitializer()
           
 java.lang.String getName()
           
 java.lang.String getStarter()
           
 java.lang.String getStopper()
           
 boolean isPrivate_access()
           
 void setClass(java.lang.Class type)
           
 void setComponent(Component c)
           
 void setDisposer(java.lang.String disposer)
           
 void setInitializer(java.lang.String initializer)
           
 void setName(java.lang.String name)
           
 void setPrivate_access(boolean private_access)
           
 void setStarter(java.lang.String starter)
           
 void setStopper(java.lang.String stopper)
           
 
Methods inherited from class jfun.yan.xml.nuts.ArgumentsAndPropertiesNut
addArg, addArgs, addProp, applyArguments, applyProperties, containsExplicitProperty, decorateComponent, defineBean, getArgList, getArgs, getAutoWire, getMaxArgsCount, getParameterAutowireMode, getParameterTypes, getPropertyAutowireMode, getPropertyNames, informAwares, isAllProperties, isBeanByDefault, isValidate_property_names, setArgs, setAutowire, setOptional_properties, setParams, setProperty_names, setProps, setValidate_property_names
 
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
 
Methods inherited from interface jfun.yan.xml.nuts.LifecycleDeclaration
getNutEnvironment, getTagLocation
 

Constructor Detail

MethodNut

public MethodNut()
Method Detail

add

public void add(Component cn)

isPrivate_access

public boolean isPrivate_access()

setPrivate_access

public void setPrivate_access(boolean private_access)

setClass

public void setClass(java.lang.Class type)

setComponent

public void setComponent(Component c)

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

getInitializer

public java.lang.String getInitializer()
Specified by:
getInitializer in interface LifecycleDeclaration

setInitializer

public void setInitializer(java.lang.String initializer)

getStarter

public java.lang.String getStarter()
Specified by:
getStarter in interface LifecycleDeclaration

setStarter

public void setStarter(java.lang.String starter)

getStopper

public java.lang.String getStopper()
Specified by:
getStopper in interface LifecycleDeclaration

setStopper

public void setStopper(java.lang.String stopper)

getDisposer

public java.lang.String getDisposer()
Specified by:
getDisposer in interface LifecycleDeclaration

setDisposer

public void setDisposer(java.lang.String disposer)

evaluateNoLifecycle

protected Component evaluateNoLifecycle()
Evaluate the Component without applying life cycle. Subclass can call this method and apply customized lifecycle.


eval

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