Package org.gvsig.installer.lib.api
Class InstallerLocator
java.lang.Object
org.gvsig.tools.locator.AbstractLocator
org.gvsig.installer.lib.api.InstallerLocator
- All Implemented Interfaces:
org.gvsig.tools.locator.Locator,org.gvsig.tools.locator.Locator_withExists
public class InstallerLocator
extends org.gvsig.tools.locator.AbstractLocator
This Locator provides the entry point for the gvSIG
InstallerManager- Author:
- Jorge Piera Llodrá
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringInstallerManager name used by the locator to access the instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstallerManagerReturn a reference toInstallerManager.static InstallerLocatorReturn the singleton instance.static voidregisterInstallerManager(Class<? extends InstallerManager> clazz) Registers the Class implementing theInstallerManagerinterface.Methods inherited from class org.gvsig.tools.locator.AbstractLocator
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
-
Field Details
-
INSTALLER_MANAGER_NAME
InstallerManager name used by the locator to access the instance- See Also:
-
-
Constructor Details
-
InstallerLocator
public InstallerLocator()
-
-
Method Details
-
getLocatorName
- See Also:
-
getInstallerManager
public static InstallerManager getInstallerManager() throws org.gvsig.tools.locator.LocatorExceptionReturn a reference toInstallerManager.- Returns:
- a reference to InstallerManager
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
getInstance
Return the singleton instance.- Returns:
- the singleton instance
-
registerInstallerManager
Registers the Class implementing theInstallerManagerinterface.- Parameters:
clazz- implementing the InstallerManager interface
-