@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* Copyright 2002 - 2012 the original author or authors .
* Copyright 2002 - 2014 the original author or authors .
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
@ -33,6 +33,9 @@ import org.springframework.util.ClassUtils;
@@ -33,6 +33,9 @@ import org.springframework.util.ClassUtils;
* < p > This is an SPI class , typically not used directly by applications .
* Can be subclassed for additional invocation parameters .
*
* < p > Both { @link RemoteInvocation } and { @link RemoteInvocationResult } are designed
* for use with standard Java serialization as well as JavaBean - style serialization .
*
* @author Juergen Hoeller
* @since 25 . 02 . 2004
* @see RemoteInvocationResult
@ -59,9 +62,13 @@ public class RemoteInvocation implements Serializable {
@@ -59,9 +62,13 @@ public class RemoteInvocation implements Serializable {
/ * *
* Create a new RemoteInvocation for use as JavaBean .
* Create a new RemoteInvocation for the given AOP method invocation .
* @param methodInvocation the AOP invocation to convert
* /
public RemoteInvocation ( ) {
public RemoteInvocation ( MethodInvocation methodInvocation ) {
this . methodName = methodInvocation . getMethod ( ) . getName ( ) ;
this . parameterTypes = methodInvocation . getMethod ( ) . getParameterTypes ( ) ;
this . arguments = methodInvocation . getArguments ( ) ;
}
/ * *
@ -77,18 +84,16 @@ public class RemoteInvocation implements Serializable {
@@ -77,18 +84,16 @@ public class RemoteInvocation implements Serializable {
}
/ * *
* Create a new RemoteInvocation for the given AOP method invocation .
* @param methodInvocation the AOP invocation to convert
* Create a new RemoteInvocation for JavaBean - style deserialization
* ( e . g . with Jackson ) .
* /
public RemoteInvocation ( MethodInvocation methodInvocation ) {
this . methodName = methodInvocation . getMethod ( ) . getName ( ) ;
this . parameterTypes = methodInvocation . getMethod ( ) . getParameterTypes ( ) ;
this . arguments = methodInvocation . getArguments ( ) ;
public RemoteInvocation ( ) {
}
/ * *
* Set the name of the target method .
* < p > This setter is intended for JavaBean - style deserialization .
* /
public void setMethodName ( String methodName ) {
this . methodName = methodName ;
@ -103,6 +108,7 @@ public class RemoteInvocation implements Serializable {
@@ -103,6 +108,7 @@ public class RemoteInvocation implements Serializable {
/ * *
* Set the parameter types of the target method .
* < p > This setter is intended for JavaBean - style deserialization .
* /
public void setParameterTypes ( Class < ? > [ ] parameterTypes ) {
this . parameterTypes = parameterTypes ;
@ -117,6 +123,7 @@ public class RemoteInvocation implements Serializable {
@@ -117,6 +123,7 @@ public class RemoteInvocation implements Serializable {
/ * *
* Set the arguments for the target method call .
* < p > This setter is intended for JavaBean - style deserialization .
* /
public void setArguments ( Object [ ] arguments ) {
this . arguments = arguments ;