org.objectweb.jeremie.libs.stub_factories.std
Class StdStub
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteStub
org.objectweb.jeremie.libs.stub_factories.std.StdStub
- All Implemented Interfaces:
- java.rmi.Remote, java.io.Serializable
- Direct Known Subclasses:
- OptStub
- public class StdStub
- extends java.rmi.server.RemoteStub
Provides an implementation of a standard Jeremie stub.
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.
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
protected |
StdStub()
Creates a standard Jeremie stub. |
|
StdStub(java.rmi.server.RemoteRef ref)
Creates a standard Jeremie stub with the given remote object
reference. |
Method Summary |
protected java.lang.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(java.rmi.server.RemoteRef ref)
Sets the reference of this stub to the given reference. |
Methods inherited from class java.rmi.server.RemoteStub |
setRef |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
StdStub
protected StdStub()
- Creates a standard Jeremie stub.
StdStub
public StdStub(java.rmi.server.RemoteRef ref)
- Creates a standard Jeremie stub with the given remote object
reference.
- Parameters:
ref
- a reference to a remote object.
setRef
public final void setRef(java.rmi.server.RemoteRef ref)
- Sets the reference of this stub to the given reference.
- Parameters:
ref
- a reference to a remote object.
readResolve
protected final java.lang.Object readResolve()
throws java.io.IOException
- Attempts to bind at least one of the identifiers in this
stub's reference to obtain an object giving access to the
referenced object. The returned object need not be a remote object.
- Returns:
- an object giving access to the target object referenced by
this stub.
- Throws:
java.io.IOException
- if something goes wrong.