public interface ServiceFilter
extends java.util.function.Predicate<java.lang.Object>
A service filter that decides whether a service loaded through the Service Provider Interface (SPI) should be used or skipped.
A new service filter can itself be provided through SPI. Service filters are never filtered through other filters. Filters may be called in any (random) order.
Modifier and Type | Method and Description |
---|---|
boolean | test(java.lang.Object service) Filter a service instance |