jfun.yan.web
Class WebSpringMethodNut

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
                      extended by jfun.yan.web.WebSpringMethodNut
All Implemented Interfaces:
java.io.Serializable, SpringContext, LifecycleDeclaration

public class WebSpringMethodNut
extends SpringMethodNut

This class simply extends SpringMethodNut and set servlet context to components with the specified setter that accepts an ServletContext object.

The default setter name is "setServletContext".

Author:
Ben Yu Jan 16, 2006 10:24:48 PM
See Also:
Serialized Form

Constructor Summary
WebSpringMethodNut(SpringService service)
           
 
Method Summary
 java.lang.String getServlet_context_property()
           
protected  Component informAwares(Component c)
          In case the component implements any marker interface or has any specific method signature that is used to automatically set property, call them and set the corresponding properties.
 void setServlet_context_property(java.lang.String servlet_context_name)
           
 
Methods inherited from class jfun.yan.xml.nuts.spring.SpringMethodNut
addBeanPostProcessor, eval, getApplicationContext, getInterfaces, getSingleton, getTransactionAttributes, getTransactionManager, isSingletonAttributeSet, manageDisposableBean, setDestroy_method, setInit_method, setInterfaces, setSingleton, setStart_method, setStop_method, setTransactionAttributes, setTransactionManager
 
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, 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

WebSpringMethodNut

public WebSpringMethodNut(SpringService service)
Method Detail

getServlet_context_property

public java.lang.String getServlet_context_property()

setServlet_context_property

public void setServlet_context_property(java.lang.String servlet_context_name)

informAwares

protected Component informAwares(Component c)
Description copied from class: ArgumentsAndPropertiesNut
In case the component implements any marker interface or has any specific method signature that is used to automatically set property, call them and set the corresponding properties.

Overrides:
informAwares in class ArgumentsAndPropertiesNut
Parameters:
c - the component.
Returns:
the Component object that informs the "aware"s.