public static class ComponentManager.LifeCycleHandler extends Object implements ComponentManager.Listener
ComponentManager.Listener
Constructor and Description |
---|
LifeCycleHandler() |
Modifier and Type | Method and Description |
---|---|
void |
afterActivation(ComponentManager mgr)
Called just after all the components were activated.
|
void |
afterDeactivation(ComponentManager mgr)
Called just after all the components were deactivated.
|
void |
afterStart(ComponentManager mgr,
boolean isResume)
Called just after all components were started
|
void |
afterStop(ComponentManager mgr,
boolean isStandby)
Called just after the components were stopped.
|
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.
|
ComponentManager.LifeCycleHandler |
install() |
ComponentManager.LifeCycleHandler |
uninstall() |
public LifeCycleHandler()
public void beforeActivation(ComponentManager mgr)
ComponentManager.Listener
ComponentManager.start()
beforeActivation
in interface ComponentManager.Listener
public void afterActivation(ComponentManager mgr)
ComponentManager.Listener
afterActivation
in interface ComponentManager.Listener
public void beforeDeactivation(ComponentManager mgr)
ComponentManager.Listener
beforeDeactivation
in interface ComponentManager.Listener
public void afterDeactivation(ComponentManager mgr)
ComponentManager.Listener
ComponentManager.stop()
.afterDeactivation
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 afterStop(ComponentManager mgr, boolean isStandby)
ComponentManager.Listener
afterStop
in interface ComponentManager.Listener
isStandby
- true if the event was initiated by a ComponentManager.standby()
call, false
otherwisepublic ComponentManager.LifeCycleHandler install()
public ComponentManager.LifeCycleHandler uninstall()
Copyright © 2017 Nuxeo. All rights reserved.