Class ServletContainerFactory


  • public final class ServletContainerFactory
    extends Object
    It's rather a provider rather than a real factory. But I prefer the factory name than the provider name.
    Version:
    $Revision: 1.1 $
    Author:
    Julien Viet
    • Constructor Detail

      • ServletContainerFactory

        public ServletContainerFactory()
    • Method Detail

      • getServletContainer

        public static ServletContainer getServletContainer()
        Returns the singleton instance.
        Returns:
        the singleton instance
      • registerContext

        public static void registerContext​(ServletContainerContext context)
                                    throws IllegalArgumentException
        Registers a servlet container context. The registration is considered as successful if no existing context is already registered.
        Parameters:
        context - the servlet container context to register
        Throws:
        IllegalArgumentException - if the context is null