Interface RegistrationLifecycle<R extends Registration>
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Subinterfaces:
RegistrationManagementLifecycle<R>
public interface RegistrationLifecycle<R extends Registration>
extends org.springframework.core.Ordered
Service registration life cycle. This life cycle is only related to
Registration.- Author:
- Zen Huifer
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptiondefault intgetOrder()voidpostProcessAfterStartRegister(R registration) A method executed after registering the local service with theServiceRegistry.voidpostProcessAfterStopRegister(R registration) A method executed after de-registering the local service with theServiceRegistry.voidpostProcessBeforeStartRegister(R registration) A method executed before registering the local service with theServiceRegistry.voidpostProcessBeforeStopRegister(R registration) A method executed before de-registering the local service with theServiceRegistry.
-
Field Details
-
DEFAULT_ORDER
static final int DEFAULT_ORDERdefault order.- See Also:
-
-
Method Details
-
postProcessBeforeStartRegister
A method executed before registering the local service with theServiceRegistry.- Parameters:
registration- registration
-
postProcessAfterStartRegister
A method executed after registering the local service with theServiceRegistry.- Parameters:
registration- registration
-
postProcessBeforeStopRegister
A method executed before de-registering the local service with theServiceRegistry.- Parameters:
registration- registration
-
postProcessAfterStopRegister
A method executed after de-registering the local service with theServiceRegistry.- Parameters:
registration- registration
-
getOrder
default int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-