S
- The type to be used for the Service
.SCTX
- The type to be used for the Service
's context.ServiceLookup<S,SCTX>
ServiceDirectoryImpl
public interface ServiceDirectory<S extends Service<?>,SCTX> extends ServiceLookup<S,SCTX>
Modifier and Type | Method | 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 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 service descriptorUnknownServiceRuntimeException
- in case the service is not known.Copyright © 2018. All rights reserved.