Class DownloaderLocator

java.lang.Object
org.gvsig.tools.locator.AbstractLocator
org.gvsig.tools.locator.BaseLocator
org.gvsig.downloader.DownloaderLocator
All Implemented Interfaces:
org.gvsig.tools.locator.Locator, org.gvsig.tools.locator.Locator_withExists

public class DownloaderLocator extends org.gvsig.tools.locator.BaseLocator
This locator is the entry point for the XML library, providing access to all XML services through the DownloaderManager
  • Field Details

  • Constructor Details

    • DownloaderLocator

      public DownloaderLocator()
  • Method Details

    • getInstance

      public static DownloaderLocator getInstance()
      Returns the singleton instance.
      Returns:
      the singleton instance
    • getOnlineManager

      public static DownloaderManager getOnlineManager()
    • getLocatorName

      public String getLocatorName()
      Returns the Locator's name
      Specified by:
      getLocatorName in interface org.gvsig.tools.locator.Locator
      Overrides:
      getLocatorName in class org.gvsig.tools.locator.BaseLocator
      Returns:
      a String with the Locator's name
    • getManager

      public static DownloaderManager getManager() throws org.gvsig.tools.locator.LocatorException
      Return a reference to DownloaderLocator.
      Returns:
      a reference to DownloaderLocator
      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)
    • getDownloaderManager

      public static DownloaderManager getDownloaderManager() throws org.gvsig.tools.locator.LocatorException
      Throws:
      org.gvsig.tools.locator.LocatorException
    • registerDownloaderManager

      public static void registerDownloaderManager(Class clazz)
      Registers the Class implementing the DownloaderLocator interface.
      Parameters:
      clazz - implementing the DownloaderLocator interface
    • registerDefaultDownloaderManager

      public static void registerDefaultDownloaderManager(Class clazz)
      Registers the default Class implementing the DownloaderLocator interface
      Parameters:
      clazz - implementing the DownloaderLocator interface