|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.util.exec.RuntimeExecBootstrapBean
public class RuntimeExecBootstrapBean
Application bootstrap bean that is able to execute one or more native executable statements upon startup and shutdown.
Field Summary |
---|
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
---|
log |
Constructor Summary | |
---|---|
RuntimeExecBootstrapBean()
Initializes the bean failOnError = true killProcessesOnShutdown = true enabled = true |
Method Summary | |
---|---|
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event)
|
protected void |
onShutdown(org.springframework.context.ApplicationEvent event)
Handle the shutdown of a subsystem but not the entire VM |
void |
setDisabledAtStartUp(java.lang.String disabledAtStartUp)
Deprecated. Use RuntimeExecBootstrapBean.setEnabled(java.lang.String) instead, remembering that the boolean property should be inverted. |
void |
setEnabled(java.lang.String enabled)
Set whether or not the process should be enabled at ApplicationContext bootstrap. |
void |
setFailOnError(boolean failOnError)
Set whether a process failure generates an error or not. |
void |
setKillProcessesOnShutdown(boolean killProcessesOnShutdown)
Set whether or not to force a shutdown of successfully started processes. |
void |
setStartupCommands(java.util.List startupCommands)
Set the commands to execute, in sequence, when the application context is initialized. |
Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
---|
getApplicationContext, onApplicationEvent, setApplicationContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeExecBootstrapBean()
Method Detail |
---|
public void setStartupCommands(java.util.List startupCommands)
startupCommands
- list of commandspublic void setFailOnError(boolean failOnError)
failOnError
- true (default) to issue an error message and throw an
exception if the process fails to execute or generates an error
return value.public void setKillProcessesOnShutdown(boolean killProcessesOnShutdown)
killProcessesOnShutdown
- true to force any successfully executed commands' processes to
be forcibly killed when the server shuts down.public void setDisabledAtStartUp(java.lang.String disabledAtStartUp)
RuntimeExecBootstrapBean.setEnabled(java.lang.String)
instead, remembering that the boolean property should be inverted.
false
by default.
This method has been deprecated in favour of a clearer name introduced in 3.3.
See RuntimeExecBootstrapBean.setEnabled(java.lang.String)
.
disabledAtStartUp
- any String which equalsIgnoreCase("true")
to prevent the command from being executed.public void setEnabled(java.lang.String enabled)
true
by default.
enabled
- any String which does not equalsIgnoreCase("true")
will prevent the command from being executed.protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |