public class RuntimeMessageHandlerImpl extends Object implements RuntimeMessageHandler, ComponentManager.Listener
Modifier and Type | Class and Description |
---|---|
protected static class |
RuntimeMessageHandlerImpl.ComponentManagerStep |
protected static class |
RuntimeMessageHandlerImpl.Message |
Modifier and Type | Field and Description |
---|---|
protected List<RuntimeMessageHandlerImpl.Message> |
messages |
protected RuntimeMessageHandlerImpl.ComponentManagerStep |
step |
Constructor and Description |
---|
RuntimeMessageHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addError(String message)
Add new error.
|
void |
addWarning(String message)
Warning messages don't block server startup.
|
void |
afterStart(ComponentManager mgr,
boolean isResume)
Called just after all components were started
|
void |
beforeActivation(ComponentManager mgr)
Called just before activating components.
|
void |
beforeDeactivation(ComponentManager mgr)
Called just before activating components.
|
void |
beforeStart(ComponentManager mgr,
boolean isResume)
Called just before starting components.
|
void |
beforeStop(ComponentManager mgr,
boolean isStandby)
Called just before stopping components.
|
protected void |
changeStep(RuntimeMessageHandlerImpl.ComponentManagerStep step) |
List<String> |
getErrors() |
List<String> |
getWarnings() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterActivation, afterDeactivation, afterStop, install, uninstall
protected final List<RuntimeMessageHandlerImpl.Message> messages
protected RuntimeMessageHandlerImpl.ComponentManagerStep step
public RuntimeMessageHandlerImpl()
public void addWarning(String message)
RuntimeMessageHandler
addWarning
in interface RuntimeMessageHandler
public List<String> getWarnings()
getWarnings
in interface RuntimeMessageHandler
List
of warning messagespublic void addError(String message)
RuntimeMessageHandler
addError
in interface RuntimeMessageHandler
public List<String> getErrors()
getErrors
in interface RuntimeMessageHandler
List
of error messagespublic void beforeActivation(ComponentManager mgr)
ComponentManager.Listener
ComponentManager.start()
beforeActivation
in interface ComponentManager.Listener
public void beforeStart(ComponentManager mgr, boolean isResume)
ComponentManager.Listener
beforeStart
in interface ComponentManager.Listener
isResume
- true if the event was initiated by a ComponentManager.resume()
call, false otherwise.public void afterStart(ComponentManager mgr, boolean isResume)
ComponentManager.Listener
afterStart
in interface ComponentManager.Listener
isResume
- true if the event was initiated by a ComponentManager.resume()
call, false otherwise.public void beforeStop(ComponentManager mgr, boolean isStandby)
ComponentManager.Listener
beforeStop
in interface ComponentManager.Listener
isStandby
- true if the event was initiated by a ComponentManager.standby()
call, false
otherwisepublic void beforeDeactivation(ComponentManager mgr)
ComponentManager.Listener
beforeDeactivation
in interface ComponentManager.Listener
protected void changeStep(RuntimeMessageHandlerImpl.ComponentManagerStep step)
Copyright © 2018 Nuxeo. All rights reserved.