1 55 56 package org.apache.bsf.debug.serverImpl; 57 58 import java.util.*; 59 import org.apache.bsf.debug.jsdi.*; 60 import org.apache.bsf.debug.util.*; 61 import org.apache.bsf.debug.meta.*; 62 63 86 public class ServerStubTable extends StubTable { 87 private ObjectServer m_server; 88 89 public ServerStubTable(ObjectServer server) { 90 super(server); 91 m_server = server; 92 } 93 protected Stub factory(int tid, int uid) { 94 Stub stub=null; 95 switch(tid) { 96 case DebugConstants.BSF_DEBUGGER_TID: 97 stub = new DebuggerStub(m_server,tid,uid); 98 break; 99 case DebugConstants.JS_CALLBACKS_TID: 100 stub = new JsCallbacksStub(m_server,tid,uid); 101 break; 102 default: 103 throw new Error ("Unknown TID="+tid+" ["+DebugConstants.getConstantName(tid)+"]"); 104 } 105 return stub; 106 } 107 } 108 109 | Popular Tags |