net.sf.easyweb4j.controller
Class SpringManager
java.lang.Object
net.sf.easyweb4j.controller.SpringManager
- All Implemented Interfaces:
- Serializable
public class SpringManager
- extends Object
- implements Serializable
Injects beans from Spring's IoC container into EasyWeb4J controllers.
This class is not a part of EasyWeb4J API. Its behavior may change in
future versions and hence its direct use in applications is
discouraged.
- Author:
- Chandra Sekar S
- See Also:
- Serialized Form
Method Summary |
void |
init(javax.servlet.ServletContext servletContext)
Looks up the Spring ApplicationContext from the given ServletContext. |
void |
injectSpringBeans(Object target)
Processes all SpringBean annotations in the given objects and
injects the Spring managed beans into them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringManager
public SpringManager()
init
public void init(javax.servlet.ServletContext servletContext)
- Looks up the Spring ApplicationContext from the given ServletContext.
- Parameters:
servletContext
- The ServletContext from which the ApplicationContext is to be
looked up.
injectSpringBeans
public void injectSpringBeans(Object target)
- Processes all
SpringBean
annotations in the given objects and
injects the Spring managed beans into them.
- Parameters:
target
- The object into which the beans are to be injected.
Copyright © 2009-2010 Chandra Sekar S. All Rights Reserved.