| java.lang.Object org.springframework.remoting.support.RemoteInvocation
Constructor Summary | |
public | RemoteInvocation() Create a new RemoteInvocation for use as JavaBean. | public | RemoteInvocation(String methodName, Class[] parameterTypes, Object[] arguments) Create a new RemoteInvocation for the given parameters. | public | RemoteInvocation(MethodInvocation methodInvocation) Create a new RemoteInvocation for the given AOP method invocation. |
RemoteInvocation | public RemoteInvocation()(Code) | | Create a new RemoteInvocation for use as JavaBean.
|
RemoteInvocation | public RemoteInvocation(String methodName, Class[] parameterTypes, Object[] arguments)(Code) | | Create a new RemoteInvocation for the given parameters.
Parameters: methodName - the name of the method to invoke Parameters: parameterTypes - the parameter types of the method Parameters: arguments - the arguments for the invocation |
RemoteInvocation | public RemoteInvocation(MethodInvocation methodInvocation)(Code) | | Create a new RemoteInvocation for the given AOP method invocation.
Parameters: methodInvocation - the AOP invocation to convert |
addAttribute | public void addAttribute(String key, Serializable value) throws IllegalStateException(Code) | | Add an additional invocation attribute. Useful to add additional
invocation context without having to subclass RemoteInvocation.
Attribute keys have to be unique, and no overriding of existing
attributes is allowed.
The implementation avoids to unnecessarily create the attributes
Map, to minimize serialization size.
Parameters: key - the attribute key Parameters: value - the attribute value throws: IllegalStateException - if the key is already bound |
getArguments | public Object[] getArguments()(Code) | | Return the arguments for the target method call.
|
getAttribute | public Serializable getAttribute(String key)(Code) | | Retrieve the attribute for the given key, if any.
The implementation avoids to unnecessarily create the attributes
Map, to minimize serialization size.
Parameters: key - the attribute key the attribute value, or null if not defined |
getMethodName | public String getMethodName()(Code) | | Return the name of the target method.
|
getParameterTypes | public Class[] getParameterTypes()(Code) | | Return the parameter types of the target method.
|
setArguments | public void setArguments(Object[] arguments)(Code) | | Set the arguments for the target method call.
|
setMethodName | public void setMethodName(String methodName)(Code) | | Set the name of the target method.
|
setParameterTypes | public void setParameterTypes(Class[] parameterTypes)(Code) | | Set the parameter types of the target method.
|
|
|