Interface ServiceBus<S extends Service<?>>

Type Parameters:
S - the generic type
All Known Implementing Classes:
SimpleServiceBus

public interface ServiceBus<S extends Service<?>>
The ServiceBus defines the functionality for Service instances to look up other Service instances.
  • Method Summary

    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.
    lookupService(ServiceMatcher<S> aServiceMatcher)
    Looks for a service matching the given service descriptor and returns it if found.