1 18 package org.apache.geronimo.interop.adapter; 19 20 import org.apache.geronimo.interop.rmi.iiop.ObjectRef; 21 import org.apache.geronimo.interop.rmi.iiop.RemoteInterface; 22 24 import java.lang.reflect.Constructor ; 25 import java.lang.reflect.InvocationTargetException ; 26 27 public abstract class Adapter 28 { 29 public abstract Object getAdapterID(); 30 public abstract String [] getBindNames(); 31 32 public abstract void start(); 33 public abstract void stop(); 34 35 public abstract ObjectRef getObjectRef(); 36 37 public abstract Object getServant(); 38 41 public abstract void invoke(java.lang.String methodName, byte[] objectKey, org.apache.geronimo.interop.rmi.iiop.ObjectInputStream input, org.apache.geronimo.interop.rmi.iiop.ObjectOutputStream output); 42 43 44 protected Class loadClass( String className, ClassLoader cl ) 45 { 46 Class rc = null; 47 try { 48 rc = cl.loadClass(className); 49 } catch (ClassNotFoundException e) { 50 e.printStackTrace(); 51 } 52 return rc; 53 } 54 55 } 56 | Popular Tags |