1 55 56 package org.apache.bsf.debug.clientImpl; 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 ClientStubTable extends StubTable { 87 88 public ClientStubTable(SocketConnection con) { 89 super(con); 90 } 91 92 protected Stub factory(int tid, int uid) { 93 Stub stub=null; 94 switch(tid) { 95 case DebugConstants.JS_CONTEXT_TID: 96 stub = new JsContextStub(m_con,tid,uid); 97 break; 98 case DebugConstants.JS_OBJECT_TID: 99 stub = new JsObjectStub(m_con,tid,uid); 100 break; 101 case DebugConstants.JS_ENGINE_TID: 102 stub = new JsEngineStub(m_con,tid,uid); 103 break; 104 default: 105 throw new Error ("Unknown TID="+tid+" ["+DebugConstants.getConstantName(tid)+"]"); 106 } 107 return stub; 108 } 109 } 110 111 | Popular Tags |