public class SpringReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.springframework.context.ApplicationContext |
currentContext |
| Constructor and Description |
|---|
SpringReader() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.context.ApplicationContext |
getCurrentContext() |
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.
|
protected static org.springframework.context.ApplicationContext currentContext
public static RequestMapper readSpringConfig(String configPath, javax.servlet.ServletContext servletContext)
configPath - the path to the Spring XML file containing the
configuration.servletContext - the ServletContext where the RequestHandlers should
be mappedpublic static org.springframework.context.ApplicationContext getCurrentContext()
Copyright © 2005–2015 IIPC. All rights reserved.