001 package biz.hammurapi.remoting; 002 003 /** 004 * Invocation from proxy are routed to instances of this interface. 005 * The instance decides whether to perform a call locally or pass it to remoter. 006 * @author Pavel 007 */ 008 public interface LocalDelegate { 009 010 /** 011 * 012 * @param proxy 013 * @param method 014 * @param args 015 * @param remoter 016 * @return 017 * @throws Throwable 018 */ 019 public Object invoke( 020 Object proxy, 021 java.lang.reflect.Method method, 022 Object[] args, 023 Remoter remoter) throws Throwable; 024 025 }