public class StdStub extends RemoteStub
A stub contains a reference to a target remote object that it represents. Reference chains may of course exist whereby a stub contains a reference to another stub, etc.
ref
Modifier | Constructor and Description |
---|---|
protected |
StdStub()
Creates a standard Jeremie stub.
|
|
StdStub(RemoteRef ref)
Creates a standard Jeremie stub with the given remote object
reference.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
readResolve()
Attempts to bind at least one of the identifiers in this
stub's reference to obtain an object giving access to the
referenced object.
|
void |
setRef(RemoteRef ref)
Sets the reference of this stub to the given reference.
|
setRef
protected StdStub()
public StdStub(RemoteRef ref)
ref
- a reference to a remote object.public final void setRef(RemoteRef ref)
ref
- a reference to a remote object.protected final Object readResolve() throws IOException
IOException
- if something goes wrong.