public class DefaultServiceProviderFinder extends ServiceProviderFinder
KNOWN_SERVICES
Constructor and Description |
---|
DefaultServiceProviderFinder() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getServiceProviderList(String spiClass)
Gets the list of classes bound to the spiClass key, looking
for entries under META-INF/services/[spiClass]
|
protected Set<URL> |
getURLs(String 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) |
calculateKnownServiceProviderMapInfo
public List<String> getServiceProviderList(String spiClass)
ServiceProviderFinder
getServiceProviderList
in class ServiceProviderFinder
public <S> ServiceLoader<S> load(Class<S> spiClass)
load
in class ServiceProviderFinder
public void initKnownServiceProviderMapInfo(ExternalContext ectx, Map<String,List<String>> map)
ServiceProviderFinder
initKnownServiceProviderMapInfo
in class ServiceProviderFinder
Copyright © 2020 The Apache Software Foundation. All rights reserved.