jfun.yan.xml.nuts
Class BeanNut

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.ConstructorNut
                  extended by jfun.yan.xml.nuts.BeanNut
All Implemented Interfaces:
java.io.Serializable, LifecycleDeclaration
Direct Known Subclasses:
SpringBeanNut, WebBeanNut

public class BeanNut
extends ConstructorNut
implements LifecycleDeclaration

Nut class for <bean> tag.

Author:
Ben Yu Nov 9, 2005 11:39:54 PM
See Also:
Serialized Form

Constructor Summary
BeanNut()
           
 
Method Summary
 void add(Component c)
           
protected  Component evaluateNoLifecycle()
          Evaluate the Component without applying life cycle.
protected  boolean isBeanByDefault()
          When no property names is specified, no property values are set, do we by default create a bean component?
 void setClass(java.lang.Class type)
           
 void setComponent(Component c)
           
 
Methods inherited from class jfun.yan.xml.nuts.ConstructorNut
eval, getDeclaringClass, getDisposer, getInitializer, getStarter, getStopper, isPrivate_access, setDisposer, setInitializer, setPrivate_access, setStarter, setStopper
 
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, 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
getDisposer, getInitializer, getNutEnvironment, getStarter, getStopper, getTagLocation
 

Constructor Detail

BeanNut

public BeanNut()
Method Detail

setComponent

public void setComponent(Component c)

add

public void add(Component c)

setClass

public void setClass(java.lang.Class type)
Overrides:
setClass in class ConstructorNut

isBeanByDefault

protected boolean isBeanByDefault()
Description copied from class: ArgumentsAndPropertiesNut
When no property names is specified, no property values are set, do we by default create a bean component?

Overrides:
isBeanByDefault in class ArgumentsAndPropertiesNut

evaluateNoLifecycle

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

Overrides:
evaluateNoLifecycle in class ConstructorNut