|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.pojo.util.MethodCall
public class MethodCall
A special MethodCall object to wrap around the rollback method call. No Serializable is required.
| Field Summary | |
|---|---|
protected Object[] |
args
The arguments of the method. |
protected static org.apache.commons.logging.Log |
log
|
protected Method |
method
The Method of the call. |
protected String |
method_name
The name of the method, case sensitive. |
protected String[] |
signature
The signature, e.g., new String[]{String.class.getLastElementAsString(), int.class.getLastElementAsString()}. |
protected Object |
target
|
protected Class[] |
types
The class types, e.g., new Class[]{String.class, int.class}. |
| Constructor Summary | |
|---|---|
MethodCall(Method method,
Object[] arguments,
Object target)
|
|
| Method Summary | |
|---|---|
Object[] |
getArgs()
|
Method |
getMethod()
|
String |
getName()
|
Object |
invoke()
|
protected Object |
invoke(Object target)
Invokes the method with the supplied arguments against the target object. |
Object |
invoke(Object target,
Object[] args)
|
void |
setArgs(Object[] args)
|
void |
setMethod(Method m)
|
void |
setName(String n)
|
String |
toString()
|
String |
toStringDetails()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String method_name
protected Object[] args
protected Class[] types
protected String[] signature
protected Method method
protected Object target
protected static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public MethodCall(Method method,
Object[] arguments,
Object target)
| Method Detail |
|---|
public String getName()
public void setName(String n)
public Object[] getArgs()
public void setArgs(Object[] args)
public Method getMethod()
public void setMethod(Method m)
public Object invoke()
throws Throwable
Throwable
protected Object invoke(Object target)
throws Throwable
target - - the object that you want to invoke the method on
Throwable
public Object invoke(Object target,
Object[] args)
throws Throwable
Throwablepublic String toString()
toString in class Objectpublic String toStringDetails()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||