org.apache.cocoon.tools.rcl.wrapper.servlet
Class ReloadingSpringFilter

java.lang.Object
  extended byorg.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingSpringFilter
All Implemented Interfaces:
Filter

public class ReloadingSpringFilter
extends Object
implements Filter

This servlet filter reloads the Spring application context whenever a relevant change in the classpath occurs. It uses the Spring reloader, which has to be loaded by the same classloader as the Spring application context. In order to get access to it without having to pull all dependencies into the this module, the Java reflection API is used.

Version:
$Id: ReloadingSpringFilter.java 628343 2008-02-16 16:14:48Z reinhard $

Constructor Summary
ReloadingSpringFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest req, ServletResponse res, FilterChain filterChain)
           
 void init(FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReloadingSpringFilter

public ReloadingSpringFilter()
Method Detail

doFilter

public void doFilter(ServletRequest req,
                     ServletResponse res,
                     FilterChain filterChain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Filter

init

public void init(FilterConfig filterConfig)
          throws ServletException
Specified by:
init in interface Filter
Throws:
ServletException


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.