|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.maven.common.run.EmbeddedRegistry
public final class EmbeddedRegistry
Registry which collects all embedded Tomcat Servers so that they will be shutdown through a shutdown hook when the JVM terminates or you can ask the registry to shutdown all started servers.
Method Summary | |
---|---|
static EmbeddedRegistry |
getInstance()
Retrieve the lazily initialized instance of the registry. |
boolean |
register(Object container)
Adds the given container to the registry which automatically registers it for the shutdown hook. |
void |
shutdownAll(org.apache.maven.plugin.logging.Log log)
Shuts down all registered embedded tomcats. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EmbeddedRegistry getInstance()
public boolean register(Object container)
container
- the container to register
public void shutdownAll(org.apache.maven.plugin.logging.Log log) throws Exception
log
- the log to write possible shutdown exceptions to
Exception
- the first exception which occurred will be rethrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |