|
Arch4J 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.arch4j.util.Performer
This class wraps any given instance and allows you to execute a method through reflection. It will allow you to call different methods at runtime.
| Constructor Summary | |
Performer(Object anObject)
Create a new instance which wraps the object passed in. |
|
| Method Summary | |
static void |
example()
An example of how to use the performer. |
Object |
getPropertyValue(String aPropertyName)
Get the value of the bean property. |
Object |
perform(String methodName)
This method was created by a SmartGuide. |
Object |
performWith(String methodName,
Object arg1)
This method was created by a SmartGuide. |
Object |
performWithAll(String methodName,
Object[] arguments)
Perform the method defined by the method name using the arguments. |
Class |
returnTypeFor(String theMethod)
This method was created by a SmartGuide. |
void |
setObject(Object anObject)
This method was created by a SmartGuide. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Performer(Object anObject)
anObject - The object to wrap.| Method Detail |
public static void example()
public Object getPropertyValue(String aPropertyName)
public Object perform(String methodName)
methodName - java.lang.String
public Object performWith(String methodName,
Object arg1)
methodName - java.lang.Stringarg1 - java.lang.Object
public Object performWithAll(String methodName,
Object[] arguments)
methodName - The name of the method to perform.arguments - The arguments to use in the method call.
public Class returnTypeFor(String theMethod)
theMethod - java.lang.String
public void setObject(Object anObject)
anObject - java.lang.Object
|
Arch4J 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||