public class Lookup extends Object
org.jaitools.numeric.Processor. Class names are read from registry
files in the META-INF/services folder. Each registry file name corresponds to a
fully qualified interface name. File format is one class name per line. Comment
lines are prefixed with a hash (#) character. Blank lines are permitted.
Each time a registry file is read its contents are cached (weakly) for subsequent lookups.
Discovery of image operators is done using the standard JAI mechanisms.
| Constructor and Description |
|---|
Lookup() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache()
Clear any cached lookups.
|
static Map<String,List<Class>> |
getCachedProviders()
Returns a copy of the cached lookups as a
Map with
service provider interface names as keys and lists of implementing
classes as values. |
static List<Class> |
getProviders(String spiName)
Get classes that implement the given service provider interface.
|
public static List<Class> getProviders(String spiName)
spiName - the fully qualified name of the interfacepublic static void clearCache()
public static Map<String,List<Class>> getCachedProviders()
Map with
service provider interface names as keys and lists of implementing
classes as values.
This method was added for testing purposes.
Map (may be empty)Copyright © 2009–2018. All rights reserved.