1 6 7 package org.jfox.jndi; 8 9 import java.lang.reflect.Method ; 10 11 import org.jfox.ioc.connector.AbstractConnectorInvoker; 12 import org.jfox.ioc.connector.ConnectorRemote; 13 import org.jfox.ioc.connector.ObjectId; 14 15 18 19 public class JNDIConnectorInvoker extends AbstractConnectorInvoker { 20 21 public JNDIConnectorInvoker(ObjectId clientId, ConnectorRemote remote) { 22 super(clientId, remote); 23 } 24 25 protected Object doInvoke(Object proxy, Method method, Object [] args) throws Throwable { 26 JNDIInvocation invocation = new JNDIInvocation(getClientId(), getMethodHash(method), args); 27 return remote.invoke(invocation); 28 29 } 30 31 public static void main(String [] args) { 32 33 } 34 } 35 | Popular Tags |