public final class EmbeddedRegistry extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static EmbeddedRegistry getInstance()
public boolean register(Object container)
container
- the container to registerpublic void shutdownAll(org.apache.maven.plugin.logging.Log log) throws Exception
log
- the log to write possible shutdown exceptions toException
- the first exception which occurred will be rethrownCopyright © 2005–2014 The Apache Software Foundation. All rights reserved.