Class 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 Detail

      • DevResourceBundleFilter

        public DevResourceBundleFilter()
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.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 interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.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.