Package org.apache.dubbo.common.deploy
Interface DeployListener<E extends ScopeModel>
- All Known Subinterfaces:
ApplicationDeployListener,ModuleDeployListener
- All Known Implementing Classes:
DeployListenerAdapter
public interface DeployListener<E extends ScopeModel>
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonCompletion(E scopeModel) Triggered after deployer startup is complete.voidUseful to do something when deployer was failed.voidonInitialize(E scopeModel) Useful to inject some configuration like MetricsConfig, RegistryConfig, etc.voidTriggered before registering and exposing the service.voidonStarting(E scopeModel) Triggered before starting module.voidTriggered after the application is destroyed, can do some customized things after the service is offline and the reference is destroyed.voidonStopping(E scopeModel) Triggered before the app is destroyed, can do some customized things before offline the service and destroy reference.
-
Method Details
-
onInitialize
Useful to inject some configuration like MetricsConfig, RegistryConfig, etc. -
onStarting
Triggered before starting module. -
onStarted
Triggered before registering and exposing the service. -
onCompletion
Triggered after deployer startup is complete. -
onStopping
Triggered before the app is destroyed, can do some customized things before offline the service and destroy reference. -
onStopped
Triggered after the application is destroyed, can do some customized things after the service is offline and the reference is destroyed. -
onFailure
Useful to do something when deployer was failed.
-