com.vaadin.flow.server.startup.

Interface ClassLoaderAwareServletContainerInitializer

    • Method Summary

      All Methods
      Modifier and Type Method and Description
      default void onStartup(Set<Class<?>> set, ServletContext context)

      Overridden to use different classloaders if needed.

      void process(Set<Class<?>> set, ServletContext ctx)

      Implement this method instead of onStartup(Set, ServletContext) to handle classes accessible by different classloaders.

      default boolean requiresLookup()

      Whether this initializer requires lookup or not.

    • Method Detail

      • onStartup

        default void onStartup(Set<Class<?>> set,
                               ServletContext context)
                        throws ServletException

        Overridden to use different classloaders if needed.

        Throws:

        ServletException

      • requiresLookup

        default boolean requiresLookup()

        Whether this initializer requires lookup or not.

        Returns:

        whether this initializer requires lookup

      • process

        void process(Set<Class<?>> set,
                     ServletContext ctx)
              throws ServletException

        Implement this method instead of onStartup(Set, ServletContext) to handle classes accessible by different classloaders.

        Parameters:

        set - the Set of application classes that extend, implement, or have been annotated with the class types specified by the HandlesTypes annotation, or null if there are no matches, or this ServletContainerInitializer has not been annotated with HandlesTypes

        ctx - the ServletContext of the web application that is being started and in which the classes contained in c were found

        Throws:

        ServletException - if an error has occurred

        See Also:

        onStartup(Set, ServletContext)