Package org.geotools.imageio.netcdf.cv
Class CoordinateHandlerFinder
- Object
-
- CoordinateHandlerFinder
-
public final class CoordinateHandlerFinder extends Object
Enable programs to find all available CoordinateHandler implementations.In order to be located by this finder modules must provide an implementation of the
CoordinateHandlerSpi
interface.In addition to implementing this interface, this service file should be defined:
META-INF/services/org.geotools.imageio.netcdf.cv.CoordinateHandlerSpi
*Example:
org.geotools.imageio.netcdf.cv.ClimatologicalTimeHandlerSPI
- Author:
- Daniele Romagnoli, GeoSolutions
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoordinateHandlerSpi.CoordinateHandler
findHandler(CoordinateAxis axis)
Returns aCoordinateHandlerSpi.CoordinateHandler
that is able to handle a certain coordinate axis.static Set<CoordinateHandlerSpi.CoordinateHandler>
findHandlers(CoordinateAxis axis)
Returns all theCoordinateHandlerSpi.CoordinateHandler
s that can handle the suppliedCoordinateAxis1D
axis.static Set<CoordinateHandlerSpi>
getAvailableHandlers()
Finds all available implementations ofCoordinateHandlerSpi
which have registered using the services mechanism.static void
scanForPlugins()
Scans for factory plug-ins on the application class path.
-
-
-
Method Detail
-
getAvailableHandlers
public static Set<CoordinateHandlerSpi> getAvailableHandlers()
Finds all available implementations ofCoordinateHandlerSpi
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.
-
findHandlers
public static Set<CoordinateHandlerSpi.CoordinateHandler> findHandlers(CoordinateAxis axis)
Returns all theCoordinateHandlerSpi.CoordinateHandler
s that can handle the suppliedCoordinateAxis1D
axis.- Parameters:
axis
- is the axis to search aCoordinateHandlerSpi.CoordinateHandler
that is able to handle- Returns:
- an unmodifiable
Set
comprising all theCoordinateHandlerSpi.CoordinateHandler
that can handle theCoordinateAxis1D
axis.
-
findHandler
public static CoordinateHandlerSpi.CoordinateHandler findHandler(CoordinateAxis axis)
Returns aCoordinateHandlerSpi.CoordinateHandler
that is able to handle a certain coordinate axis.- Parameters:
axis
- the object to check for acceptance.
-
-