Package org.gvsig.compat
Class CompatLocator
java.lang.Object
org.gvsig.tools.locator.AbstractLocator
org.gvsig.tools.locator.BaseLocator
org.gvsig.compat.CompatLocator
- All Implemented Interfaces:
org.gvsig.tools.locator.Locator,org.gvsig.tools.locator.Locator_withExists
public class CompatLocator
extends org.gvsig.tools.locator.BaseLocator
Locator for the libCompat Library. Returns references to the library's main
utilities.
- Author:
- Cèsar Ordiñana
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloaderReturn a reference to GraphicsUtils.static GraphicsUtilsReturn a reference to GraphicsUtils.static CompatLocatorReturn the singleton instance.static MathUtilsReturn a reference to MathUtils.static StringUtilsReturn a reference to StringUtils.static voidregisterDownloader(Class clazz) Registers the Class implementing the GraphicsUtils interface.static voidregisterGraphicsUtils(Class clazz) Registers the Class implementing the GraphicsUtils interface.static voidregisterMathUtils(Class clazz) Registers the Class implementing the MathUtils interface.static voidregisterStringUtils(Class clazz) Registers the Class implementing the StringUtils interface.Methods inherited from class org.gvsig.tools.locator.BaseLocator
getLocatorNameMethods inherited from class org.gvsig.tools.locator.AbstractLocator
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
-
Field Details
-
STRINGUTILS_NAME
The name of the StringUtils reference.- See Also:
-
MATHUTILS_NAME
The name of the MathUtils reference.- See Also:
-
GRAPHICSUTILS_NAME
- See Also:
-
DOWNLOADER_NAME
The name and the description for theDownloaderreference.- See Also:
-
DOWNLOADER_DESCRIPTION
- See Also:
-
-
Constructor Details
-
CompatLocator
public CompatLocator()
-
-
Method Details
-
getInstance
Return the singleton instance.- Returns:
- the singleton instance
-
getStringUtils
Return a reference to StringUtils.- Returns:
- a reference to StringUtils
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
getMathUtils
Return a reference to MathUtils.- Returns:
- a reference to MathUtils
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
registerMathUtils
Registers the Class implementing the MathUtils interface.- Parameters:
clazz- implementing the MathUtils interface
-
registerStringUtils
Registers the Class implementing the StringUtils interface.- Parameters:
clazz- implementing the StringUtils interface
-
getGraphicsUtils
Return a reference to GraphicsUtils.- Returns:
- a reference to GraphicsUtils
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
registerGraphicsUtils
Registers the Class implementing the GraphicsUtils interface.- Parameters:
clazz- implementing the GraphicsUtils interface
-
getDownloader
Return a reference to GraphicsUtils.- Returns:
- a reference to GraphicsUtils
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
registerDownloader
Registers the Class implementing the GraphicsUtils interface.- Parameters:
clazz- implementing the GraphicsUtils interface
-