Example usage for org.springframework.remoting.support RemoteInvocationResult recreate

List of usage examples for org.springframework.remoting.support RemoteInvocationResult recreate

Introduction

In this page you can find the example usage for org.springframework.remoting.support RemoteInvocationResult recreate.

Prototype

@Nullable
public Object recreate() throws Throwable 

Source Link

Document

Recreate the invocation result, either returning the result value in case of a successful invocation of the target method, or rethrowing the exception thrown by the target method.

Usage

From source file:org.logicblaze.lingo.jms.JmsClientInterceptor.java

/**
 * Recreate the invocation result contained in the given
 * RemoteInvocationResult object. The default implementation calls the
 * default recreate method./*from w  w  w .ja  va2  s .c o  m*/
 * <p>
 * Can be overridden in subclass to provide custom recreation, potentially
 * processing the returned result object.
 * 
 * @param result
 *            the RemoteInvocationResult to recreate
 * @return a return value if the invocation result is a successful return
 * @throws Throwable
 *             if the invocation result is an exception
 * @see org.springframework.remoting.support.RemoteInvocationResult#recreate
 */
protected Object recreateRemoteInvocationResult(RemoteInvocationResult result) throws Throwable {
    return result.recreate();
}