public interface ProviderScanner
| Modifier and Type | Method and Description |
|---|---|
Provider |
findCompatibleProvider()
Scans the
Provider implementations, checks their requirements
and tries to find one that will work, preferring the one named by the
userAgentProvider property, if it was set. |
Provider |
findCompatibleProvider(String userAgentProvider)
Scans the
Provider implementations, checks their requirements
and tries to find one that will work, preferring the one whose
name was provided. |
Map<Provider,List<String>> |
getUnmetProviderRequirements()
Determines unmet requirements (if any) for each available
Provider implementation. |
boolean |
hasCompatibleProvider()
Calls
findCompatibleProvider() and
returns whether a compatible Provider was found. |
boolean |
hasCompatibleProvider(String userAgentProvider)
Calls
findCompatibleProvider(String) and
returns whether a compatible Provider was found. |
Provider findCompatibleProvider()
Provider implementations, checks their requirements
and tries to find one that will work, preferring the one named by the
userAgentProvider property, if it was set.Provider that was deemed compatible;
null if no compatible providers were found.Provider findCompatibleProvider(String userAgentProvider)
Provider implementations, checks their requirements
and tries to find one that will work, preferring the one whose
name was provided.userAgentProvider - the name of the preferred provider or
null if there's no preferenceProvider that was deemed compatible;
null if no compatible providers were found.Map<Provider,List<String>> getUnmetProviderRequirements()
Provider implementation.boolean hasCompatibleProvider()
findCompatibleProvider() and
returns whether a compatible Provider was found.true if a compatible provider was found;
false otherwise.boolean hasCompatibleProvider(String userAgentProvider)
findCompatibleProvider(String) and
returns whether a compatible Provider was found.userAgentProvider - the name of the preferred provider or
null if there's no preferencetrue if a compatible provider was found;
false otherwise.Copyright © 2018. All rights reserved.