Package org.apache.catalina
Class ServerFactory
- java.lang.Object
-
- org.apache.catalina.ServerFactory
-
public class ServerFactory extends Object
ServerFactory allows the registration of the (singleton)
Serverinstance for this JVM, so that it can be accessed independently of any existing reference to the component hierarchy. This is important for administration tools that are built around the internal component implementation classes.- Version:
- $Revision: 1.2 $ $Date: 2005/12/08 01:27:20 $
- Author:
- Craig R. McClanahan
-
-
Constructor Summary
Constructors Constructor Description ServerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServergetServer()Return the singletonServerinstance for this JVM.static voidsetServer(Server theServer)Set the singletonServerinstance for this JVM.
-
-
-
Method Detail
-
getServer
public static Server getServer()
Return the singletonServerinstance for this JVM.
-
setServer
public static void setServer(Server theServer)
Set the singletonServerinstance for this JVM. This method must only be called from a constructor of the (singleton)Serverinstance that is created for this execution of Catalina.- Parameters:
theServer- The new singleton instance
-
-