Package org.gvsig.downloader
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloaderManagerstatic DownloaderLocatorReturns the singleton instance.Returns the Locator's namestatic DownloaderManagerReturn a reference to DownloaderLocator.static DownloaderManagerstatic voidRegisters the default Class implementing the DownloaderLocator interfacestatic voidregisterDownloaderManager(Class clazz) Registers the Class implementing the DownloaderLocator interface.Methods inherited from class org.gvsig.tools.locator.AbstractLocator
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
-
Field Details
-
MANAGER_NAME
XML manager name- See Also:
-
-
Constructor Details
-
DownloaderLocator
public DownloaderLocator()
-
-
Method Details
-
getInstance
Returns the singleton instance.- Returns:
- the singleton instance
-
getOnlineManager
-
getLocatorName
Returns the Locator's name- Specified by:
getLocatorNamein interfaceorg.gvsig.tools.locator.Locator- Overrides:
getLocatorNamein classorg.gvsig.tools.locator.BaseLocator- Returns:
- a String with the Locator's name
-
getManager
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:
-
getDownloaderManager
public static DownloaderManager getDownloaderManager() throws org.gvsig.tools.locator.LocatorException- Throws:
org.gvsig.tools.locator.LocatorException
-
registerDownloaderManager
Registers the Class implementing the DownloaderLocator interface.- Parameters:
clazz- implementing the DownloaderLocator interface
-
registerDefaultDownloaderManager
Registers the default Class implementing the DownloaderLocator interface- Parameters:
clazz- implementing the DownloaderLocator interface
-