public class SimpleModule extends AbstractModule
Module
implementation backed by a Spring ApplicationContext
.Constructor and Description |
---|
SimpleModule(ModuleDescriptor descriptor,
ModuleDeploymentProperties deploymentProperties) |
SimpleModule(ModuleDescriptor descriptor,
ModuleDeploymentProperties deploymentProperties,
java.lang.ClassLoader classLoader,
ModuleOptions moduleOptions) |
Modifier and Type | Method and Description |
---|---|
void |
addComponents(org.springframework.core.io.Resource resource) |
void |
addListener(org.springframework.context.ApplicationListener<?> listener) |
void |
addProperties(java.util.Properties properties) |
protected void |
addSource(java.lang.Object source) |
void |
destroy()
Destroy this module's application context.
|
org.springframework.context.ApplicationContext |
getApplicationContext() |
<T> T |
getComponent(java.lang.Class<T> requiredType) |
<T> T |
getComponent(java.lang.String componentName,
java.lang.Class<T> requiredType) |
java.util.Properties |
getProperties() |
void |
initialize() |
boolean |
isRunning() |
void |
setParentContext(org.springframework.context.ApplicationContext parent) |
void |
start() |
void |
stop() |
getDeploymentProperties, getDescriptor, getName, getType, toString
public SimpleModule(ModuleDescriptor descriptor, ModuleDeploymentProperties deploymentProperties)
public SimpleModule(ModuleDescriptor descriptor, ModuleDeploymentProperties deploymentProperties, java.lang.ClassLoader classLoader, ModuleOptions moduleOptions)
public void setParentContext(org.springframework.context.ApplicationContext parent)
public void addComponents(org.springframework.core.io.Resource resource)
protected void addSource(java.lang.Object source)
public void addProperties(java.util.Properties properties)
public void addListener(org.springframework.context.ApplicationListener<?> listener)
public java.util.Properties getProperties()
public org.springframework.context.ApplicationContext getApplicationContext()
public <T> T getComponent(java.lang.Class<T> requiredType)
public <T> T getComponent(java.lang.String componentName, java.lang.Class<T> requiredType)
public void initialize()
public void start()
public void stop()
public boolean isRunning()
public void destroy()
Module