public abstract class ServiceProviderFinder extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
KNOWN_SERVICES |
Constructor and Description |
---|
ServiceProviderFinder() |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
calculateKnownServiceProviderMapInfo(ExternalContext ectx,
String[] knownServices) |
abstract List<String> |
getServiceProviderList(String spiClass)
Gets the list of classes bound to the spiClass key, looking
for entries under META-INF/services/[spiClass]
|
void |
initKnownServiceProviderMapInfo(ExternalContext ectx,
Map<String,List<String>> map)
If ServiceProviderFinderFactory knows beforehand or has stored somewhere the
known locations of the SPI interfaces, this method helps to set this config
information so the implementation of this interface can use it.
|
<S> ServiceLoader<S> |
load(Class<S> spiClass) |
public static final String[] KNOWN_SERVICES
public abstract List<String> getServiceProviderList(String spiClass)
spiClass
- public <S> ServiceLoader<S> load(Class<S> spiClass)
public void initKnownServiceProviderMapInfo(ExternalContext ectx, Map<String,List<String>> map)
map
- Copyright © 2020 The Apache Software Foundation. All rights reserved.