Package org.apache.juneau.microservice
Class BasicMicroserviceListener
java.lang.Object
org.apache.juneau.microservice.BasicMicroserviceListener
- All Implemented Interfaces:
MicroserviceListener
- Direct Known Subclasses:
BasicJettyMicroserviceListener
Basic extensible microservice listener with default no-op method implementations.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonConfigChange(Microservice microservice, ConfigEvents events) Called if one or more changes occur in the config file.voidonStart(Microservice microservice) Called at the beginning of theMicroservice.start()call.voidonStop(Microservice microservice) Called at the end of theMicroservice.stop()call.
-
Constructor Details
-
BasicMicroserviceListener
public BasicMicroserviceListener()
-
-
Method Details
-
onConfigChange
Description copied from interface:MicroserviceListenerCalled if one or more changes occur in the config file.- Specified by:
onConfigChangein interfaceMicroserviceListener- Parameters:
microservice- Reference to microservice.events- The list of changes in the config file.
-
onStart
Description copied from interface:MicroserviceListenerCalled at the beginning of theMicroservice.start()call.- Specified by:
onStartin interfaceMicroserviceListener- Parameters:
microservice- Reference to microservice.
-
onStop
Description copied from interface:MicroserviceListenerCalled at the end of theMicroservice.stop()call.- Specified by:
onStopin interfaceMicroserviceListener- Parameters:
microservice- Reference to microservice.
-