public class DefaultContainer extends java.lang.Object implements Container, org.springframework.context.SmartLifecycle
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XD_CONFIG_ROOT
Base location for XD config files.
|
static java.lang.String |
XD_INTERNAL_CONFIG_ROOT
Where container related config files reside.
|
| Constructor and Description |
|---|
DefaultContainer()
Default constructor generates a random id
|
DefaultContainer(java.lang.String id)
Creates a container with a given id
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(org.springframework.context.ApplicationListener<?> listener) |
java.lang.String |
getId() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
public static final java.lang.String XD_CONFIG_ROOT
public static final java.lang.String XD_INTERNAL_CONFIG_ROOT
public DefaultContainer(java.lang.String id)
id - the idpublic DefaultContainer()
public int getPhase()
getPhase in interface org.springframework.context.Phasedpublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void addListener(org.springframework.context.ApplicationListener<?> listener)