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 Details

  • Constructor Details

    • CompatLocator

      public CompatLocator()
  • Method Details

    • getInstance

      public static CompatLocator getInstance()
      Return the singleton instance.
      Returns:
      the singleton instance
    • getStringUtils

      public static StringUtils getStringUtils() throws org.gvsig.tools.locator.LocatorException
      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:
      • Locator.get(String)
    • getMathUtils

      public static MathUtils getMathUtils() throws org.gvsig.tools.locator.LocatorException
      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:
      • Locator.get(String)
    • registerMathUtils

      public static void registerMathUtils(Class clazz)
      Registers the Class implementing the MathUtils interface.
      Parameters:
      clazz - implementing the MathUtils interface
    • registerStringUtils

      public static void registerStringUtils(Class clazz)
      Registers the Class implementing the StringUtils interface.
      Parameters:
      clazz - implementing the StringUtils interface
    • getGraphicsUtils

      public static GraphicsUtils getGraphicsUtils() throws org.gvsig.tools.locator.LocatorException
      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:
      • Locator.get(String)
    • registerGraphicsUtils

      public static void registerGraphicsUtils(Class clazz)
      Registers the Class implementing the GraphicsUtils interface.
      Parameters:
      clazz - implementing the GraphicsUtils interface
    • getDownloader

      public static Downloader getDownloader() throws org.gvsig.tools.locator.LocatorException
      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:
      • Locator.get(String)
    • registerDownloader

      public static void registerDownloader(Class clazz)
      Registers the Class implementing the GraphicsUtils interface.
      Parameters:
      clazz - implementing the GraphicsUtils interface