Class ServletContainerFactory

java.lang.Object
org.gatein.wci.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.
  • Field Details

  • Constructor Details

    • ServletContainerFactory

      public ServletContainerFactory()
  • Method Details

    • 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