Uses of Interface
org.refcodes.servicebus.ServiceMatcher
-
Uses of ServiceMatcher in org.refcodes.servicebus
Modifier and TypeMethodDescriptionstatic <S extends Service<?>>
ServiceMatcher<S>ServiceMatcherSugar.and
(ServiceMatcher<S>... aServiceMatchers) Factory method to create an "AND" matcher for the given matchers.ServiceMatcherAccessor.getServiceMatcher()
Retrieves theServiceMatcher
property from the property.static <S extends Service<?>>
ServiceMatcher<S>ServiceMatcherSugar.isAssignableFrom
(Class<?> aServiceType) Factory method to create an service matcher by service type.default ServiceMatcher<?>
ServiceMatcherAccessor.ServiceMatcherProperty.letServiceMatcher
(ServiceMatcher<?> aServiceMatcher) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenServiceMatcher
(setter) as ofServiceMatcherAccessor.ServiceMatcherMutator.setServiceMatcher(ServiceMatcher)
and returns the very same value (getter).static <S extends Service<?>>
ServiceMatcher<S>ServiceMatcherSugar.or
(ServiceMatcher<S>... aServiceMatchers) Factory method to create an "OR" matcher for the given matchers.Modifier and TypeMethodDescriptionstatic <S extends Service<?>>
ServiceMatcher<S>ServiceMatcherSugar.and
(ServiceMatcher<S>... aServiceMatchers) Factory method to create an "AND" matcher for the given matchers.boolean
ServiceBus.hasService
(ServiceMatcher<S> aServiceMatcher) Determines whether the givenServiceMatcher
will result in a singleService
to be looked up.boolean
SimpleServiceBus.hasService
(ServiceMatcher<S> aServiceMatcher) Determines whether the givenServiceMatcher
will result in a singleService
to be looked up.default ServiceMatcher<?>
ServiceMatcherAccessor.ServiceMatcherProperty.letServiceMatcher
(ServiceMatcher<?> aServiceMatcher) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenServiceMatcher
(setter) as ofServiceMatcherAccessor.ServiceMatcherMutator.setServiceMatcher(ServiceMatcher)
and returns the very same value (getter).ServiceBus.lookupService
(ServiceMatcher<S> aServiceMatcher) Looks for a service matching the given service descriptor and returns it if found.SimpleServiceBus.lookupService
(ServiceMatcher<S> aServiceMatcher) Looks for a service matching the given service descriptor and returns it if found.static <S extends Service<?>>
ServiceMatcher<S>ServiceMatcherSugar.or
(ServiceMatcher<S>... aServiceMatchers) Factory method to create an "OR" matcher for the given matchers.void
ServiceMatcherAccessor.ServiceMatcherMutator.setServiceMatcher
(ServiceMatcher<?> aServiceMatcher) Sets theServiceMatcher
property for the property.ModifierConstructorDescriptionAmbiguousServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String message) Instantiates a new ambiguous service runtime exception.AmbiguousServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String aMessage, String aErrorCode) Instantiates a new ambiguous service runtime exception.AmbiguousServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String message, Throwable cause) Instantiates a new ambiguous service runtime exception.AmbiguousServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new ambiguous service runtime exception.AmbiguousServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, Throwable cause) Instantiates a new ambiguous service runtime exception.AmbiguousServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, Throwable aCause, String aErrorCode) Instantiates a new ambiguous service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String message) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String aMessage, String aErrorCode) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String message, Throwable cause) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, Throwable cause) Instantiates a new no matching service runtime exception.NoMatchingServiceRuntimeException
(ServiceMatcher<?> aServiceMatcher, Throwable aCause, String aErrorCode) Instantiates a new no matching service runtime exception.