Class RegistrationServiceImpl
java.lang.Object
org.openwms.common.location.impl.registration.RegistrationServiceImpl
- All Implemented Interfaces:
RegistrationService
A RegistrationServiceImpl.
- Author:
- Heiko Scherrer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull List
<ReplicaRegistry> Get all currently registered service instances.void
register
(@NotNull LocationReplicaRegistration registration) Registers a new service instance with their particular lifecycle endpoints.void
unregister
(@NotNull LocationReplicaRegistration registration) Unregisters a service instance.
-
Field Details
-
repository
-
-
Constructor Details
-
RegistrationServiceImpl
RegistrationServiceImpl(ReplicaRegistryRepository repository)
-
-
Method Details
-
register
Registers a new service instance with their particular lifecycle endpoints.- Specified by:
register
in interfaceRegistrationService
- Parameters:
registration
- Contains all required registration information
-
unregister
Unregisters a service instance.- Specified by:
unregister
in interfaceRegistrationService
- Parameters:
registration
- Contains all required information to unregister
-
getAllRegistered
Get all currently registered service instances.- Specified by:
getAllRegistered
in interfaceRegistrationService
- Returns:
- A list of registrations
-