public abstract class AbstractPlugin extends java.lang.Object implements Plugin, org.springframework.core.Ordered, org.springframework.context.ApplicationContextAware
Plugin
that contains no-op and common implementing methods.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger
Logger.
|
protected static java.lang.String |
PLUGIN_CONTEXT_CONFIG_ROOT |
Constructor and Description |
---|
AbstractPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
beforeShutdown(Module module)
Perform any cleanup necessary prior to module shutdown
|
protected org.springframework.context.ApplicationContext |
getApplicationContext() |
int |
getOrder() |
void |
postProcessModule(Module module)
Apply changes to the module after it is initialized i.e. after its context is refreshed, but before it is
started.
|
void |
preProcessModule(Module module)
Apply changes to the module before it is initialized i.e. before its context is refreshed.
|
void |
removeModule(Module module)
Take any actions necessary to remove a module from the system.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
abstract boolean |
supports(Module module)
Check if the module is supported by the plugin.
|
protected final org.slf4j.Logger logger
protected static final java.lang.String PLUGIN_CONTEXT_CONFIG_ROOT
public void preProcessModule(Module module)
Plugin
preProcessModule
in interface Plugin
public void postProcessModule(Module module)
Plugin
postProcessModule
in interface Plugin
public void removeModule(Module module)
Plugin
removeModule
in interface Plugin
public void beforeShutdown(Module module)
Plugin
beforeShutdown
in interface Plugin
public abstract boolean supports(Module module)
Plugin
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
protected org.springframework.context.ApplicationContext getApplicationContext()