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, waitafterActivation, afterDeactivation, afterStop, install, uninstallprotected final List<RuntimeMessageHandlerImpl.Message> messages
protected RuntimeMessageHandlerImpl.ComponentManagerStep step
public RuntimeMessageHandlerImpl()
public void addWarning(String message)
RuntimeMessageHandleraddWarning in interface RuntimeMessageHandlerpublic List<String> getWarnings()
getWarnings in interface RuntimeMessageHandlerList of warning messagespublic void addError(String message)
RuntimeMessageHandleraddError in interface RuntimeMessageHandlerpublic List<String> getErrors()
getErrors in interface RuntimeMessageHandlerList of error messagespublic void beforeActivation(ComponentManager mgr)
ComponentManager.ListenerComponentManager.start()beforeActivation in interface ComponentManager.Listenerpublic void beforeStart(ComponentManager mgr, boolean isResume)
ComponentManager.ListenerbeforeStart in interface ComponentManager.ListenerisResume - true if the event was initiated by a ComponentManager.resume() call, false otherwise.public void afterStart(ComponentManager mgr, boolean isResume)
ComponentManager.ListenerafterStart in interface ComponentManager.ListenerisResume - true if the event was initiated by a ComponentManager.resume() call, false otherwise.public void beforeStop(ComponentManager mgr, boolean isStandby)
ComponentManager.ListenerbeforeStop in interface ComponentManager.ListenerisStandby - true if the event was initiated by a ComponentManager.standby() call, false
            otherwisepublic void beforeDeactivation(ComponentManager mgr)
ComponentManager.ListenerbeforeDeactivation in interface ComponentManager.Listenerprotected void changeStep(RuntimeMessageHandlerImpl.ComponentManagerStep step)
Copyright © 2019 Nuxeo. All rights reserved.