jfun.yan.xml.nuts.spring
Class SpringMethodNut

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
                  extended by jfun.yan.xml.nuts.spring.SpringMethodNut
All Implemented Interfaces:
java.io.Serializable, SpringContext, LifecycleDeclaration
Direct Known Subclasses:
WebSpringMethodNut

public class SpringMethodNut
extends MethodNut
implements SpringContext

A spring-aware method tag.

Author:
Ben Yu Nov 17, 2005 12:07:25 AM
See Also:
Serialized Form

Constructor Summary
SpringMethodNut(SpringService service)
           
 
Method Summary
 void addBeanPostProcessor(java.lang.String key, Component bpp)
          Notify the framework there is a BeanPostProcessor!
 Component eval()
           
 org.springframework.context.ApplicationContext getApplicationContext()
          Get the spring BeanFactory object.
 java.lang.String[] getInterfaces()
           
 SingletonMode getSingleton()
          Get the configured singleton mode.
 Component getTransactionAttributes()
           
 Component getTransactionManager()
           
 boolean isSingletonAttributeSet()
          Is the singleton mode configured?
 void manageDisposableBean(org.springframework.beans.factory.DisposableBean instance)
          Manage the lifecycle of a Disposable Bean.
 void setDestroy_method(java.lang.String name)
           
 void setInit_method(java.lang.String name)
           
 void setInterfaces(java.lang.String[] interfaces)
           
 void setSingleton(SingletonMode singleton)
           
 void setStart_method(java.lang.String name)
           
 void setStop_method(java.lang.String name)
           
 void setTransactionAttributes(Component transaction_attrs)
           
 void setTransactionManager(Component tx)
           
 
Methods inherited from class jfun.yan.xml.nuts.MethodNut
add, evaluateNoLifecycle, getDisposer, getInitializer, getName, getStarter, getStopper, isPrivate_access, setClass, setComponent, setDisposer, setInitializer, setName, 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, 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.spring.SpringContext
cast, convert, getId, getTagName, isGloballyDefined
 
Methods inherited from interface jfun.yan.xml.nuts.LifecycleDeclaration
getNutEnvironment, getTagLocation
 

Constructor Detail

SpringMethodNut

public SpringMethodNut(SpringService service)
Method Detail

setInit_method

public void setInit_method(java.lang.String name)

setDestroy_method

public void setDestroy_method(java.lang.String name)

setStart_method

public void setStart_method(java.lang.String name)

setStop_method

public void setStop_method(java.lang.String name)

getInterfaces

public java.lang.String[] getInterfaces()

setInterfaces

public void setInterfaces(java.lang.String[] interfaces)

getTransactionAttributes

public Component getTransactionAttributes()

setTransactionAttributes

public void setTransactionAttributes(Component transaction_attrs)

getTransactionManager

public Component getTransactionManager()

setTransactionManager

public void setTransactionManager(Component tx)

manageDisposableBean

public void manageDisposableBean(org.springframework.beans.factory.DisposableBean instance)
Description copied from interface: SpringContext
Manage the lifecycle of a Disposable Bean.

Specified by:
manageDisposableBean in interface SpringContext
Parameters:
instance - the disposable bean.

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()
Description copied from interface: SpringContext
Get the spring BeanFactory object.

Specified by:
getApplicationContext in interface SpringContext

eval

public Component eval()
Overrides:
eval in class MethodNut

addBeanPostProcessor

public void addBeanPostProcessor(java.lang.String key,
                                 Component bpp)
Description copied from interface: SpringContext
Notify the framework there is a BeanPostProcessor!

Specified by:
addBeanPostProcessor in interface SpringContext
Parameters:
key - the key of the bean.
bpp - the component for the BeanPostProcessor.

getSingleton

public SingletonMode getSingleton()
Description copied from interface: SpringContext
Get the configured singleton mode.

Specified by:
getSingleton in interface SpringContext

setSingleton

public void setSingleton(SingletonMode singleton)

isSingletonAttributeSet

public boolean isSingletonAttributeSet()
Description copied from interface: SpringContext
Is the singleton mode configured?

Specified by:
isSingletonAttributeSet in interface SpringContext