| java.lang.Object uk.org.ponder.reflect.ClassGetter
ClassGetter | public class ClassGetter (Code) | | Owing to a peculiar bug/inconsistency in certain JVMs, this class is
necessary to swallow the ClassNotFoundException that otherwise cannot be
handled if Class.forName is tried in certain contexts (static/inner)
|
Method Summary | |
public static Object | construct(Class clazz) Constructs an object of the given class with only a runtime exception in
the case of failure. | public static Class | forName(String classname) Returns the Class object corresponding to the supplied fully-qualified
classname, as if looked up by Class.forName().
Parameters: classname - The classname to be looked up. |
construct | public static Object construct(Class clazz)(Code) | | Constructs an object of the given class with only a runtime exception in
the case of failure.
Parameters: class1 - |
forName | public static Class forName(String classname)(Code) | | Returns the Class object corresponding to the supplied fully-qualified
classname, as if looked up by Class.forName().
Parameters: classname - The classname to be looked up. The Class object corresponding to the classname, ornull if the name cannot be looked up. |
|
|