S
- the generic typeServiceBusImpl
public interface ServiceBus<S extends Service<?>>
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasService(ServiceMatcher<S> aServiceMatcher) |
Determines whether the given
ServiceMatcher will result in a
single Service to be looked up. |
S |
lookupService(ServiceMatcher<S> aServiceMatcher) |
Looks for a service matching the given service descriptor and returns it
if found.
|
S lookupService(ServiceMatcher<S> aServiceMatcher) throws UnknownServiceRuntimeException, AmbiguousServiceRuntimeException
aServiceMatcher
- The ServiceMatcher
describing the service
for which to look for.ServiceConfigurationError
.UnknownServiceRuntimeException
- in case no Service
matched.AmbiguousServiceRuntimeException
- in case more than one
Service
matched the ServiceMatcher
.boolean hasService(ServiceMatcher<S> aServiceMatcher)
ServiceMatcher
will result in a
single Service
to be looked up. I.e. the ServiceMatcher
must result in an unambiguous Service
to be identified.aServiceMatcher
- The ServiceMatcher
describing the
Service
for which to look for.Service
is matching the
matcher. Else false is returned (either more than one service was
identified or none service was identified).Copyright © 2018. All rights reserved.