Class WebFragmentRegistrationBean.TomcatListenerAdder

  • All Implemented Interfaces:
    org.springframework.boot.web.embedded.tomcat.TomcatContextCustomizer
    Enclosing class:
    WebFragmentRegistrationBean

    public static class WebFragmentRegistrationBean.TomcatListenerAdder
    extends java.lang.Object
    implements org.springframework.boot.web.embedded.tomcat.TomcatContextCustomizer
    This TomcatContextCustomizer adds listeners to the servlet-context in a non-programmatic way, so they aren't affected by the restrictions for programmatically registered listeners of Section 4.4 of the Servlet Specification.
    • Constructor Summary

      Constructors 
      Constructor Description
      TomcatListenerAdder​(java.util.List<java.lang.Class<? extends java.util.EventListener>> listeners)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void customize​(org.apache.catalina.Context context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TomcatListenerAdder

        public TomcatListenerAdder​(java.util.List<java.lang.Class<? extends java.util.EventListener>> listeners)
    • Method Detail

      • customize

        public void customize​(org.apache.catalina.Context context)
        Specified by:
        customize in interface org.springframework.boot.web.embedded.tomcat.TomcatContextCustomizer