1 16 17 package org.springframework.remoting.support; 18 19 import java.lang.reflect.InvocationTargetException ; 20 21 import org.springframework.util.Assert; 22 23 31 public class DefaultRemoteInvocationExecutor implements RemoteInvocationExecutor { 32 33 public Object invoke(RemoteInvocation invocation, Object targetObject) 34 throws NoSuchMethodException , IllegalAccessException , InvocationTargetException { 35 36 Assert.notNull(invocation, "RemoteInvocation must not be null"); 37 Assert.notNull(targetObject, "Target object must not be null"); 38 return invocation.invoke(targetObject); 39 } 40 41 } 42 | Popular Tags |