IClassLocatorpublic class DummyClassLocator extends java.lang.Object implements IClassLocator
| Modifier and Type | Class | Description |
|---|---|---|
private class |
DummyClassLocator.DummyClassInfo |
(Very) partial implementation of class information interface, used as a place holder for classes.
|
| Modifier and Type | Field | Description |
|---|---|---|
private IClass |
s_objectDummy |
Singleton instance of root class information.
|
| Constructor | Description |
|---|---|
DummyClassLocator() |
| Modifier and Type | Method | Description |
|---|---|---|
IClass |
getClassInfo(java.lang.String name) |
Get class information.
|
IClass |
getRequiredClassInfo(java.lang.String name) |
Get required class information.
|
boolean |
isLookupSupported() |
Check if class lookup is supported.
|
java.lang.Class |
loadClass(java.lang.String name) |
Load class.
|
private final IClass s_objectDummy
public boolean isLookupSupported()
false to indicate that lookup methods return only
place holder class information.isLookupSupported in interface IClassLocatorfalsepublic IClass getClassInfo(java.lang.String name)
getClassInfo in interface IClassLocatorname - fully-qualified name of class to be foundnull if class not foundpublic IClass getRequiredClassInfo(java.lang.String name)
getClassInfo(String), but throws a runtime exception
rather than returning null.getRequiredClassInfo in interface IClassLocatorname - fully-qualified name of class to be foundnull)public java.lang.Class loadClass(java.lang.String name)
loadClass in interface IClassLocatorname - fully-qualified class namenull if not found