Class FootprintLoaderFinder
Object
FootprintLoaderFinder
Enable programs to find all available FootprintLoader implementations.
In order to be located by this finder modules must provide an implementation of the FootprintLoaderSpi
interface.
In addition to implementing this interface, this service file should be defined:
META-INF/services/org.geotools.coverage.grid.io.footprint.FootprintLoaderSpi
*
Example:
org.geotools.coverage.grid.io.footprint.WKBLoaderSPI
- Author:
- Daniele Romagnoli, GeoSolutions
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<FootprintLoaderSpi>
Finds all available implementations ofFootprintLoaderSpi
which have registered using the services mechanism.static void
Scans for factory plug-ins on the application class path.
-
Method Details
-
getAvailableLoaders
Finds all available implementations ofFootprintLoaderSpi
which have registered using the services mechanism.- Returns:
- An unmodifiable
Set
of all discovered modules which have registered factories
-
scanForPlugins
public static void scanForPlugins()Scans for factory plug-ins on the application class path. This method is needed because the application class path can theoretically change, or additional plug-ins may become available. Rather than re-scanning the classpath on every invocation of the API, the class path is scanned automatically only on the first invocation. Clients can call this method to prompt a re-scan. Thus this method need only be invoked by sophisticated applications which dynamically make new plug-ins available at runtime.
-