public class DummyClassLocator extends java.lang.Object implements IClassLocator
Modifier and Type | Class and Description |
---|---|
private class |
DummyClassLocator.DummyClassInfo
(Very) partial implementation of class information interface, used as a place holder for classes.
|
Modifier and Type | Field and Description |
---|---|
private IClass |
s_objectDummy
Singleton instance of root class information.
|
Constructor and Description |
---|
DummyClassLocator() |
Modifier and Type | Method and 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 IClassLocator
false
public IClass getClassInfo(java.lang.String name)
getClassInfo
in interface IClassLocator
name
- 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 IClassLocator
name
- fully-qualified name of class to be foundnull
)public java.lang.Class loadClass(java.lang.String name)
loadClass
in interface IClassLocator
name
- fully-qualified class namenull
if not found