org.apache.bsf.debug.clientImpl
Class ClientStubTable
public class ClientStubTable
This class provides the resident object table for the
mirrors. A mirror represents a remote JavaScript object
or any remote concept that needs to be identified such
engines or contexts which are not JavaScript objects.
A mirror 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 mirror 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 mirror objects.
When a mirror is created, it is remembered in the resident
object table for later rebinding from its uid.
factory
protected Stub factory(int tid,
int uid)
- factory in interface StubTable