|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.clazz.ClazzLoader
public abstract class ClazzLoader
Constructs/loads Clazzes.
| Constructor Summary | |
|---|---|
ClazzLoader(ModelClazzLoader modelClazzLoader)
ClazzLoaders are grouped into models. |
|
| Method Summary | |
|---|---|
abstract Clazz |
defineClazz(String name,
Class clazzClass,
Class instanceClass)
Defines a new Clazz with the supplied name. |
void |
enableLogging(String className)
Enable diagnistic logging for the specified class. |
Clazz |
getClazz(Object instance)
Returns the Clazz for the supplied instance. |
abstract Clazz |
getClazzForName(String name)
Given a Clazz name, returns the corresponding Clazz. |
abstract String |
getClazzName(Object instance)
Returns the clazz name for the supplied instance. |
String |
getModel()
Returns the name of the model this clazz loader belongs to. |
ModelClazzLoader |
getModelClazzLoader()
Returns the model clazz loader for this clazz loader. |
boolean |
isLoggingEnabled(String className)
|
abstract boolean |
isMember(Object instance)
Returns true iff this loader has or can construct a Clazz for the supplied instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClazzLoader(ModelClazzLoader modelClazzLoader)
| Method Detail |
|---|
public ModelClazzLoader getModelClazzLoader()
public String getModel()
public abstract Clazz getClazzForName(String name)
Note that we use canonical class names for primitive types and arrays, e.g. "byte", "byte[]", "boolean[][]", "java.lang.String[]".
public abstract boolean isMember(Object instance)
public Clazz getClazz(Object instance)
null
if it cannot produce such a Clazz.
public abstract String getClazzName(Object instance)
null if it cannot produce a clazz name for the instance.
public abstract Clazz defineClazz(String name,
Class clazzClass,
Class instanceClass)
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.
public void enableLogging(String className)
public boolean isLoggingEnabled(String className)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||