-
- Enclosing class:
- ServiceRegistry
public static interface ServiceRegistry.Filter
A simple filter interface used byServiceRegistry.getServiceProviders
to select providers matching an arbitrary criterion. Classes that implement this interface should be defined in order to make use of thegetServiceProviders
method ofServiceRegistry
that takes aFilter
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
filter(Object provider)
Returnstrue
if the givenprovider
object matches the criterion defined by thisFilter
.
-
-
-
Method Detail
-
filter
boolean filter(Object provider)
Returnstrue
if the givenprovider
object matches the criterion defined by thisFilter
.- Parameters:
provider
- a service providerObject
.- Returns:
- true if the provider matches the criterion.
-
-