|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.clazz.ClazzLoader
org.apache.commons.clazz.reflect.ReflectedClazzLoader
| Constructor Summary | |
ReflectedClazzLoader(org.apache.commons.clazz.ModelClazzLoader modelClazzLoader,
ClassLoader classLoader)
|
|
| Method Summary | |
protected abstract org.apache.commons.clazz.Clazz |
createClazz(Class javaClass)
Override this method to construct an Clazz for the given Class (javaClass). |
org.apache.commons.clazz.Clazz |
defineClazz(String name,
Class clazzClass,
Class instanceClass)
Defines a new Clazz with the supplied name. |
org.apache.commons.clazz.Clazz |
getClazzForName(String name)
Given a Clazz name, returns the corresponding Clazz. |
String |
getClazzName(Object instance)
Returns the clazz name for the supplied instance. |
boolean |
isMember(Object instance)
Returns true for all objects. |
protected boolean |
isSupportedClass(Class javaClass)
Returns true for all classes supported by this specific clazz loader. |
protected org.apache.commons.clazz.Clazz |
lookupCustomClazz(Class javaClass)
Try to find and allocate a custom Clazz for the specified Java class. |
| Methods inherited from class org.apache.commons.clazz.ClazzLoader |
enableLogging, getClazz, getModel, getModelClazzLoader, isLoggingEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReflectedClazzLoader(org.apache.commons.clazz.ModelClazzLoader modelClazzLoader,
ClassLoader classLoader)
| Method Detail |
public String getClazzName(Object instance)
org.apache.commons.clazz.ClazzLoadernull if it cannot produce a clazz name for the instance.
public org.apache.commons.clazz.Clazz getClazzForName(String name)
org.apache.commons.clazz.ClazzLoaderNote that we use canonical class names for primitive types and arrays, e.g. "byte", "byte[]", "boolean[][]", "java.lang.String[]".
protected org.apache.commons.clazz.Clazz lookupCustomClazz(Class javaClass)
javaClass -
public boolean isMember(Object instance)
true for all objects.
ClazzLoader.isMember(Object)protected boolean isSupportedClass(Class javaClass)
protected abstract org.apache.commons.clazz.Clazz createClazz(Class javaClass)
this.
public org.apache.commons.clazz.Clazz defineClazz(String name,
Class clazzClass,
Class instanceClass)
org.apache.commons.clazz.ClazzLoader
name - the name of the clazz, should be unique within the scope of
the top-level ClazzLoaderclazzClass - the Class of the Clazz that this method needs to
produce.instanceClass - the Class of the instances the new Clazz will be
able to create using the newInstance() method.
ClazzLoader.defineClazz(String, Class, Class)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||