public class CompatLocator extends BaseLocator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOWNLOADER_DESCRIPTION |
static java.lang.String |
DOWNLOADER_NAME
The name and the description for the
Downloader reference. |
static java.lang.String |
GRAPHICSUTILS_NAME |
static java.lang.String |
MATHUTILS_NAME
The name of the MathUtils reference.
|
static java.lang.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(java.lang.Class clazz)
Registers the Class implementing the GraphicsUtils interface.
|
static void |
registerGraphicsUtils(java.lang.Class clazz)
Registers the Class implementing the GraphicsUtils interface.
|
static void |
registerMathUtils(java.lang.Class clazz)
Registers the Class implementing the MathUtils interface.
|
static void |
registerStringUtils(java.lang.Class clazz)
Registers the Class implementing the StringUtils interface.
|
getLocatorName
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
public static final java.lang.String STRINGUTILS_NAME
public static final java.lang.String MATHUTILS_NAME
public static final java.lang.String GRAPHICSUTILS_NAME
public static final java.lang.String DOWNLOADER_NAME
Downloader
reference.public static final java.lang.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(java.lang.Class clazz)
clazz
- implementing the MathUtils interfacepublic static void registerStringUtils(java.lang.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(java.lang.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(java.lang.Class clazz)
clazz
- implementing the GraphicsUtils interface