S
- The type to be used for the Service
.SCTX
- The type to be used for the Service
's context.public interface ServiceDirectory<S extends Service<?>,SCTX> extends ServiceLookup<S,SCTX>
Modifier and Type | Method and Description |
---|---|
void |
addService(ServiceDescriptor<S,SCTX> aServiceDescriptor)
Registers a service to the service bus.
|
void |
removeService(ServiceDescriptor<S,SCTX> aServiceDescriptor)
Unregisters a service to the service bus.
|
getServiceDescriptors, hasService
void addService(ServiceDescriptor<S,SCTX> aServiceDescriptor) throws DuplicateServiceRuntimeException
aServiceDescriptor
- the a service descriptorDuplicateServiceRuntimeException
- in case the service cannot be
identified unambiguously by a matcher. A matcher declaration must
be possible to identify the given service unambiguously. The
service as being described by the service type and the service
meta data is already registered to the service bus.void removeService(ServiceDescriptor<S,SCTX> aServiceDescriptor) throws UnknownServiceRuntimeException
aServiceDescriptor
- the a service descriptorUnknownServiceRuntimeException
- in case the service is not known.Copyright © 2018. All rights reserved.