|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.web.struts.ActionServletAwareProcessor
BeanPostProcessor implementation that passes the ActionServlet
to beans that extend the Struts Action class. Invokes
Action.setServlet
with null on bean destruction,
providing the same lifecycle handling as Struts' ActionServlet.
ContextLoaderPlugIn automatically registers this processor with the underlying bean factory of its WebApplicationContext. Applications do not use this class directly.
ContextLoaderPlugIn
Constructor Summary | |
ActionServletAwareProcessor(org.apache.struts.action.ActionServlet actionServlet)
Create a new ActionServletAwareProcessor for the given servlet. |
Method Summary | |
java.lang.Object |
postProcessAfterInitialization(java.lang.Object bean,
java.lang.String name)
Apply this BeanPostProcessor to the given new bean instance after any bean initialization callbacks (like InitializingBean's afterPropertiesSet or a custom init-method). |
void |
postProcessBeforeDestruction(java.lang.Object bean,
java.lang.String name)
Apply this BeanPostProcessor to the given new bean instance before its destruction. |
java.lang.Object |
postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String name)
Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks (like InitializingBean's afterPropertiesSet or a custom init-method). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionServletAwareProcessor(org.apache.struts.action.ActionServlet actionServlet)
Method Detail |
public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String name)
BeanPostProcessor
postProcessBeforeInitialization
in interface BeanPostProcessor
bean
- the new bean instancename
- the name of the bean
public java.lang.Object postProcessAfterInitialization(java.lang.Object bean, java.lang.String name)
BeanPostProcessor
postProcessAfterInitialization
in interface BeanPostProcessor
bean
- the new bean instancename
- the name of the bean
public void postProcessBeforeDestruction(java.lang.Object bean, java.lang.String name)
DestructionAwareBeanPostProcessor
postProcessBeforeDestruction
in interface DestructionAwareBeanPostProcessor
bean
- the new bean instancename
- the name of the bean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |