Package de.xima.fc.servlet.filter
Class DevResourceBundleFilter
- java.lang.Object
-
- de.xima.fc.servlet.filter.DevResourceBundleFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class DevResourceBundleFilter extends Object implements javax.servlet.Filter
Filer that is added dynamically when dev mode is activated. Clears the resource bundle cache on every request so that changes to resource bundle.properties
are visible without restart.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description DevResourceBundleFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
static void
registerDynamically(javax.servlet.ServletContext servletContext)
Dynamically registers this filter with the given servlet context.
-
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
registerDynamically
public static void registerDynamically(javax.servlet.ServletContext servletContext)
Dynamically registers this filter with the given servlet context.- Parameters:
servletContext
- Current servlet context.
-
-