jfun.yan.web
Class WebSpringBeanNut

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

public class WebSpringBeanNut
extends SpringBeanNut

This class simply extends SpringBeanNut 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
WebSpringBeanNut(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.SpringBeanNut
addBeanPostProcessor, eval, getApplicationContext, getInterfaces, getPropertyAutowireMode, 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.BeanNut
add, evaluateNoLifecycle, isBeanByDefault, setClass, setComponent
 
Methods inherited from class jfun.yan.xml.nuts.ConstructorNut
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, getPropertyNames, 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.spring.SpringContext
cast, convert, getId, getTagName, isGloballyDefined
 
Methods inherited from interface jfun.yan.xml.nuts.LifecycleDeclaration
getDisposer, getInitializer, getNutEnvironment, getStarter, getStopper, getTagLocation
 

Constructor Detail

WebSpringBeanNut

public WebSpringBeanNut(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.