public class XDContainer
extends java.lang.Object
implements org.springframework.context.SmartLifecycle, org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XD_BATCH_CONFIG_ROOT |
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 |
|---|
XDContainer()
Default constructor generates a random id
|
XDContainer(java.lang.String id)
Creates a container with a given id
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(org.springframework.context.ApplicationListener<?> listener) |
org.springframework.context.ApplicationContext |
getApplicationContext() |
java.lang.String |
getId() |
int |
getJmxPort() |
java.lang.String |
getJvmName() |
int |
getPhase() |
java.lang.String |
getPropertyValue(java.lang.String key) |
boolean |
isAutoStartup() |
boolean |
isJmxEnabled() |
boolean |
isRunning() |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
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 static final java.lang.String XD_BATCH_CONFIG_ROOT
public XDContainer(java.lang.String id)
id - the idpublic XDContainer()
public java.lang.String getId()
public java.lang.String getJvmName()
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 setApplicationContext(org.springframework.context.ApplicationContext context)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic org.springframework.context.ApplicationContext getApplicationContext()
public 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)
public int getJmxPort()
public boolean isJmxEnabled()
public java.lang.String getPropertyValue(java.lang.String key)