Package org.gatein.wci
Class ServletContainerFactory
java.lang.Object
org.gatein.wci.ServletContainerFactory
It's rather a provider rather than a real factory. But I prefer the factory name than the provider name.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServletContainerReturns the singleton instance.static voidregisterContext(ServletContainerContext context) Registers a servlet container context.
-
Field Details
-
instance
.
-
-
Constructor Details
-
ServletContainerFactory
public ServletContainerFactory()
-
-
Method Details
-
getServletContainer
Returns the singleton instance.- Returns:
- the singleton instance
-
registerContext
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
-