| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.ServerFactory
public class ServerFactory
ServerFactory allows the registration of the
 (singleton) Server instance 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.
| Constructor Summary | |
|---|---|
| ServerFactory() | |
| Method Summary | |
|---|---|
| static void | clear()Clears the singleton Serverinstance for this JVM. | 
| static Server | getServer()Return the singleton Serverinstance for this JVM. | 
| static Server | getServer(boolean create)Return the singleton Serverinstance for this JVM. | 
| static void | setServer(Server theServer)Set the singleton Serverinstance for this JVM. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ServerFactory()
| Method Detail | 
|---|
public static Server getServer()
Server instance for this JVM.
public static Server getServer(boolean create)
Server instance for this JVM.
create - true to create a server if none is available and
            always return a Server instance,
            false to peek the current value and return
            null if no server has been created
public static void setServer(Server theServer)
Server instance for this JVM.  This
 method must only be called from a constructor of
 the (singleton) Server instance that is created for
 this execution of Catalina.
theServer - The new singleton instancepublic static void clear()
Server instance for this JVM. Allows to
 run several instances of Tomcat sequentially in the same JVM. Unit tests
 use this feature.
| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||