Interface Deployer.Listener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
OSGiDeploymentListener
- Enclosing interface:
Deployer
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onCreated
(ContextHandler contextHandler) Called when aContextHandler
is first seen by theDeployer
.default void
onDeployed
(ContextHandler contextHandler) default void
onDeploying
(ContextHandler contextHandler) Event called when aContextHandler
is added to theContextHandlerCollection
.default void
onFailure
(ContextHandler contextHandler, Throwable cause) Event called when aContextHandler
isfailed
.default void
onRemoved
(ContextHandler contextHandler) Called when aContextHandler
is last seen by theDeployer
.default void
onStarted
(ContextHandler contextHandler) Event called when aContextHandler
isstarted
.default void
onStarting
(ContextHandler contextHandler) Event called when aContextHandler
isstarting
.default void
onStopped
(ContextHandler contextHandler) Event called when aContextHandler
isstopped
.default void
onStopping
(ContextHandler contextHandler) Event called when aContextHandler
isstopping
.default void
onUndeployed
(ContextHandler contextHandler) default void
onUndeploying
(ContextHandler contextHandler) Event called when aContextHandler
is removed from theContextHandlerCollection
.
-
Method Details
-
onCreated
Called when aContextHandler
is first seen by theDeployer
.- Parameters:
contextHandler
- TheContextHandler
seen.
-
onDeploying
Event called when aContextHandler
is added to theContextHandlerCollection
. AContextHandler
is deployed when it is both added andstarted
.- Parameters:
contextHandler
- TheContextHandler
added.
-
onStarting
Event called when aContextHandler
isstarting
.- Parameters:
contextHandler
- TheContextHandler
starting.
-
onStarted
Event called when aContextHandler
isstarted
. AcontextHandler
is deployed when it is bothadded
and started.- Parameters:
contextHandler
- TheContextHandler
added.
-
onDeployed
- Parameters:
contextHandler
- TheContextHandler
deployed.
-
onUndeploying
Event called when aContextHandler
is removed from theContextHandlerCollection
. AContextHandler
is undeployed when it is both removed andstopped
.- Parameters:
contextHandler
- TheContextHandler
undeploying.
-
onStopping
Event called when aContextHandler
isstopping
.- Parameters:
contextHandler
- TheContextHandler
stopping.
-
onStopped
Event called when aContextHandler
isstopped
.- Parameters:
contextHandler
- TheContextHandler
stopped.
-
onUndeployed
- Parameters:
contextHandler
- TheContextHandler
undeployed.
-
onFailure
Event called when aContextHandler
isfailed
.- Parameters:
contextHandler
- TheContextHandler
that failed.cause
- The cause of the failure.
-
onRemoved
Called when aContextHandler
is last seen by theDeployer
.- Parameters:
contextHandler
- TheContextHandler
seen.
-