net.sf.springlayout.web.filter
Class LocalApplicationContext
java.lang.Object
net.sf.springlayout.web.filter.LocalApplicationContext
- All Implemented Interfaces:
- javax.servlet.Filter
public class LocalApplicationContext
- extends java.lang.Object
- implements javax.servlet.Filter
Servlet Filter for providing a reference to the Spring Application Context via ThreadLocal.
- Author:
- Adam Boas, Rob Monie
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
|
static org.springframework.context.ApplicationContext |
getApplicationContext()
|
void |
init(javax.servlet.FilterConfig config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalApplicationContext
public LocalApplicationContext()
init
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
java.io.IOException
javax.servlet.ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()
Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.