Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.bsf.debug.serverImpl
Class ServerStubTable  view ServerStubTable download ServerStubTable.java

java.lang.Object
  extended byorg.apache.bsf.debug.util.StubTable
      extended byorg.apache.bsf.debug.serverImpl.ServerStubTable

public class ServerStubTable
extends org.apache.bsf.debug.util.StubTable

This class provides the resident object table for the mirrors. A Stub represents a remote JavaScript object or any remote concept that needs to be identified such engines or contexts which are not JavaScript objects. A Stub has a unique identifier allocated on the server. This is called its oid, for object identifier. The oid is not only carrying the identity but also the type of the remote object. Knowing the type is essential when a Stub has to be created. For instance, it is important to know if a remote object is just an object or a reified code as a script or a function. The oid is a long, the high word is the type (tid), the low word is the unique identifier (uid). The unique identifier is globally unique across all types. This class also acts as the factory for Stub objects. When a Stub is created, it is remembered in the resident object table for later rebinding from its uid.


Field Summary
private  ObjectServer m_server
           
 
Fields inherited from class org.apache.bsf.debug.util.StubTable
m_con, m_stubs
 
Constructor Summary
ServerStubTable(ObjectServer server)
           
 
Method Summary
protected  org.apache.bsf.debug.util.Stub factory(int tid, int uid)
           
 
Methods inherited from class org.apache.bsf.debug.util.StubTable
disconnectNotify, swizzle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_server

private ObjectServer m_server
Constructor Detail

ServerStubTable

public ServerStubTable(ObjectServer server)
Method Detail

factory

protected org.apache.bsf.debug.util.Stub factory(int tid,
                                                 int uid)