Interface RebelServletContainerInitializer


  • public interface RebelServletContainerInitializer
    Servlet container initializer visible to JRebel. This interface allows JRebel integration with javax.servlet.ServletContainerInitializer introduced in Servlet API 3.0. Framework integration should mark ServletContainerInitializer implementation with RebelServletContainerInitializer interface and implement custom reloading logic in onReload(java.util.Set, RebelServletContext) method. Servlet container integration should track all marked with RebelServletContainerInitializer initializers and rerun them if any class change was detected. Tracks only classes which match any of the criteria specified by the javax.servlet.annotation.HandlesTypes annotations.
    • Method Detail

      • onReload

        void onReload​(Set<Class<?>> c,
                      RebelServletContext ctx)
        This method should be called by Servlet container integration if any changes were detected.