public class ServiceMatcherSugar extends Object
ServiceMatcher
related
elements.Constructor and Description |
---|
ServiceMatcherSugar() |
Modifier and Type | Method and Description |
---|---|
static <S extends Service<?>> |
and(ServiceMatcher<S>... aServiceMatchers)
Factory method to create an "AND" matcher for the given matchers.
|
static <S extends Service<?>> |
isAssignableFrom(Class<?> aServiceType)
Factory method to create an service matcher by service type.
|
static <S extends Service<?>> |
or(ServiceMatcher<S>... aServiceMatchers)
Factory method to create an "OR" matcher for the given matchers.
|
public static <S extends Service<?>> ServiceMatcher<S> isAssignableFrom(Class<?> aServiceType)
S
- The type of the service to be matchedaServiceType
- The service type to be matched by this matcher.@SafeVarargs public static <S extends Service<?>> ServiceMatcher<S> or(ServiceMatcher<S>... aServiceMatchers)
S
- The type of the service applied to the matcheraServiceMatchers
- The matchers to be combined by an "OR".@SafeVarargs public static <S extends Service<?>> ServiceMatcher<S> and(ServiceMatcher<S>... aServiceMatchers)
S
- The type of the service applied to the matcheraServiceMatchers
- The matchers to be combined by an "AND".Copyright © 2017. All rights reserved.