|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.clazz.common.ClazzElementSupport org.apache.commons.clazz.Clazz org.apache.commons.clazz.bean.BeanClazz
public class BeanClazz
Dynamically constructed Clazz. BeanClazzes are created by invoking clazzLoader.defineClazz (name,
clazzClass, instanceClass)
.
Field Summary |
---|
Fields inherited from class org.apache.commons.clazz.Clazz |
---|
EXTENDED_CLAZZ_MODEL, STANDARD_CLAZZ_MODEL |
Constructor Summary | |
---|---|
BeanClazz(ClazzLoader loader,
String name,
Class instanceClass)
Constructor for BeanClazz. |
Method Summary | |
---|---|
void |
addDeclaredOperation(ClazzOperation operation)
|
void |
addDeclaredProperty(ClazzProperty property)
|
void |
addInstanceFactory(ClazzInstanceFactory factory)
|
protected void |
addOperation(ClazzOperation operation)
Called indirectly when declared operations are manipulated. |
protected void |
addProperty(ClazzProperty property)
Called indirectly when declared properties are manipulated. |
List |
getDeclaredOperations()
Returns all Operations declared by this clazz, not its superclazzes. |
List |
getDeclaredProperties()
Returns properties declared by this Clazz, not its superclazzes |
Class |
getInstanceClass()
Returns the class of instances created by the newInstance()
method. |
List |
getInstanceFactories()
Returns all InstanceFactories for this clazz. |
ClazzInstanceFactory |
getInstanceFactory(String signature)
Returns ClazzInstanceFactory for the given signature. |
ClazzOperation |
getOperation(String signature)
Returns the Operation for the given signature. |
List |
getOperations()
Returns all Operations for this clazz. |
List |
getProperties()
Returns all properties for this clazz, including those declared by superclazzes. |
ClazzProperty |
getProperty(String name)
Returns a ClazzProperty for the given name |
Clazz |
getSuperclazz()
Returns the superclazz for this Clazz, or null if there is none. |
protected void |
refreshAllCaches()
|
protected void |
refreshOperationCache()
|
protected void |
refreshPropertyCache()
|
void |
removeDeclaredOperation(ClazzOperation operation)
|
void |
removeDeclaredProperty(ClazzProperty property)
|
void |
removeInstanceFactory(ClazzInstanceFactory factory)
|
protected void |
removeOperation(ClazzOperation operation)
Called indirectly when declared operations are manipulated. |
protected void |
removeProperty(ClazzProperty property)
Called indirectly when declared properties are manipulated. |
void |
setSuperclazz(Clazz clazz)
|
Methods inherited from class org.apache.commons.clazz.common.ClazzElementSupport |
---|
getAttribute, getAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.clazz.ClazzElement |
---|
getAttribute, getAttributes |
Constructor Detail |
---|
public BeanClazz(ClazzLoader loader, String name, Class instanceClass)
loader
- name
- instanceClass
- Method Detail |
---|
public Class getInstanceClass()
Clazz
newInstance()
method.
getInstanceClass
in class Clazz
public Clazz getSuperclazz()
Clazz
getSuperclazz
in class Clazz
Clazz.getSuperclazz()
public void setSuperclazz(Clazz clazz)
protected void refreshAllCaches()
protected void refreshPropertyCache()
protected void refreshOperationCache()
public List getDeclaredProperties()
Clazz
getDeclaredProperties
in class Clazz
Clazz.getDeclaredProperties()
public void addDeclaredProperty(ClazzProperty property)
protected void addProperty(ClazzProperty property)
public void removeDeclaredProperty(ClazzProperty property)
protected void removeProperty(ClazzProperty property)
public List getProperties()
Clazz
getProperties
in class Clazz
Clazz.getProperties()
public ClazzProperty getProperty(String name)
Clazz
getProperty
in class Clazz
Clazz.getProperty(java.lang.String)
public List getDeclaredOperations()
Clazz
getDeclaredOperations
in class Clazz
Clazz.getDeclaredOperations()
public void addDeclaredOperation(ClazzOperation operation)
protected void addOperation(ClazzOperation operation)
public void removeDeclaredOperation(ClazzOperation operation)
protected void removeOperation(ClazzOperation operation)
public List getOperations()
Clazz
getOperations
in class Clazz
Clazz.getOperations()
public ClazzOperation getOperation(String signature)
Clazz
"name(paramClazzName1,...)"
getOperation
in class Clazz
Clazz.getOperation(java.lang.String)
public List getInstanceFactories()
Clazz
getInstanceFactories
in class Clazz
Clazz.getInstanceFactories()
public ClazzInstanceFactory getInstanceFactory(String signature)
Clazz
"(paramClazzName1,...)"
. You
can pass null
in place of "()"
.
getInstanceFactory
in class Clazz
Clazz.getInstanceFactory(java.lang.String)
public void addInstanceFactory(ClazzInstanceFactory factory)
public void removeInstanceFactory(ClazzInstanceFactory factory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |