public class CompatLocator extends BaseLocator
Modifier and Type | Field and Description |
---|---|
static String |
DOWNLOADER_DESCRIPTION |
static String |
DOWNLOADER_NAME
The name and the description for the
Downloader reference. |
static String |
GRAPHICSUTILS_NAME |
static String |
MATHUTILS_NAME
The name of the MathUtils reference.
|
static String |
STRINGUTILS_NAME
The name of the StringUtils reference.
|
Constructor and Description |
---|
CompatLocator() |
Modifier and Type | Method and Description |
---|---|
static Downloader |
getDownloader()
Return a reference to GraphicsUtils.
|
static GraphicsUtils |
getGraphicsUtils()
Return a reference to GraphicsUtils.
|
static CompatLocator |
getInstance()
Return the singleton instance.
|
static MathUtils |
getMathUtils()
Return a reference to MathUtils.
|
static StringUtils |
getStringUtils()
Return a reference to StringUtils.
|
static void |
registerDownloader(Class clazz)
Registers the Class implementing the GraphicsUtils interface.
|
static void |
registerGraphicsUtils(Class clazz)
Registers the Class implementing the GraphicsUtils interface.
|
static void |
registerMathUtils(Class clazz)
Registers the Class implementing the MathUtils interface.
|
static void |
registerStringUtils(Class clazz)
Registers the Class implementing the StringUtils interface.
|
getLocatorName
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
public static final String STRINGUTILS_NAME
public static final String MATHUTILS_NAME
public static final String GRAPHICSUTILS_NAME
public static final String DOWNLOADER_NAME
Downloader
reference.public static final String DOWNLOADER_DESCRIPTION
public static CompatLocator getInstance()
public static StringUtils getStringUtils() throws LocatorException
LocatorException
- if there is no access to the class or the class cannot be
instantiatedLocator.get(String)
public static MathUtils getMathUtils() throws LocatorException
LocatorException
- if there is no access to the class or the class cannot be
instantiatedLocator.get(String)
public static void registerMathUtils(Class clazz)
clazz
- implementing the MathUtils interfacepublic static void registerStringUtils(Class clazz)
clazz
- implementing the StringUtils interfacepublic static GraphicsUtils getGraphicsUtils() throws LocatorException
LocatorException
- if there is no access to the class or the class cannot be
instantiatedLocator.get(String)
public static void registerGraphicsUtils(Class clazz)
clazz
- implementing the GraphicsUtils interfacepublic static Downloader getDownloader() throws LocatorException
LocatorException
- if there is no access to the class or the class cannot be
instantiatedLocator.get(String)
public static void registerDownloader(Class clazz)
clazz
- implementing the GraphicsUtils interface