org.archive.wayback.util.webapp
Class SpringReader
java.lang.Object
org.archive.wayback.util.webapp.SpringReader
public class SpringReader
- extends Object
Single static method to read a Spring XML configuration, extract
RequestHandlers, and return a RequestMapper which delegates requests to
those RequestHandlers.
- Author:
- brad
|
Method Summary |
static RequestMapper |
readSpringConfig(String configPath,
javax.servlet.ServletContext servletContext)
Read the single Spring XML configuration file located at the specified
path, performing PropertyPlaceHolder interpolation, extracting all beans
which implement the RequestHandler interface, and construct a
RequestMapper for those RequestHandlers, on the specified ServletContext. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringReader
public SpringReader()
readSpringConfig
public static RequestMapper readSpringConfig(String configPath,
javax.servlet.ServletContext servletContext)
- Read the single Spring XML configuration file located at the specified
path, performing PropertyPlaceHolder interpolation, extracting all beans
which implement the RequestHandler interface, and construct a
RequestMapper for those RequestHandlers, on the specified ServletContext.
- Parameters:
configPath - the path to the Spring XML file containing the
configuration.servletContext - the ServletContext where the RequestHandlers should
be mapped
- Returns:
- a new ReqeustMapper which delegates requests for the
ServletContext
Copyright © 2005-2011 Internet Archive. All Rights Reserved.