1 16 17 package org.springframework.remoting.support; 18 19 import org.aopalliance.intercept.MethodInvocation; 20 21 33 public abstract class RemoteInvocationBasedAccessor extends UrlBasedRemoteAccessor { 34 35 private RemoteInvocationFactory remoteInvocationFactory = new DefaultRemoteInvocationFactory(); 36 37 38 44 public void setRemoteInvocationFactory(RemoteInvocationFactory remoteInvocationFactory) { 45 this.remoteInvocationFactory = 46 (remoteInvocationFactory != null ? remoteInvocationFactory : new DefaultRemoteInvocationFactory()); 47 } 48 49 52 public RemoteInvocationFactory getRemoteInvocationFactory() { 53 return this.remoteInvocationFactory; 54 } 55 56 68 protected RemoteInvocation createRemoteInvocation(MethodInvocation methodInvocation) { 69 return getRemoteInvocationFactory().createRemoteInvocation(methodInvocation); 70 } 71 72 82 protected Object recreateRemoteInvocationResult(RemoteInvocationResult result) throws Throwable { 83 return result.recreate(); 84 } 85 86 } 87 | Popular Tags |