APIdia Launch Partner
Top Description Fields Constructors Methods
java.rmi.server

public abstract Class RemoteStub

extends RemoteObject
Class Inheritance
Known Direct Subclasses
sun.rmi.registry.RegistryImpl_Stub, sun.rmi.transport.DGCImpl_Stub
Annotations
@Deprecated

Deprecated

Statically generated stubs are deprecated, since stubs are generated dynamically. See UnicastRemoteObject for information about dynamic stub generation.

The RemoteStub class is the common superclass of statically generated client stubs and provides the framework to support a wide range of remote reference semantics. Stub objects are surrogates that support exactly the same set of remote interfaces defined by the actual implementation of the remote object.
Author
Ann Wollrath
Since
1.1

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.rmi.server.RemoteObject.serialVersionUID.

indicate compatibility with JDK 1.1.x version of class
Inherited from java.rmi.server.RemoteObject:
ref

Constructor Summary

AccessConstructor and Description
protected
RemoteStub()

Constructs a RemoteStub.

protected
RemoteStub(RemoteRef
the remote reference
ref
)

Constructs a RemoteStub with the specified remote reference.

Method Summary

Modifier and TypeMethod and Description
protected static void
setRef(RemoteStub
the remote stub
stub
,
RemoteRef
the remote reference
ref
)
Deprecated No replacement.

Throws UnsupportedOperationException.

Inherited from java.rmi.server.RemoteObject:
equalsgetRefhashCodetoStringtoStub

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.rmi.server.RemoteObject.serialVersionUID.

indicate compatibility with JDK 1.1.x version of class

Constructor Detail

RemoteStubback to summary
protected RemoteStub()

Constructs a RemoteStub.

RemoteStubback to summary
protected RemoteStub(RemoteRef ref)

Constructs a RemoteStub with the specified remote reference.

Parameters
ref:RemoteRef

the remote reference

Since
1.1

Method Detail

setRefback to summary
protected static void setRef(RemoteStub stub, RemoteRef ref)

Deprecated

No replacement. The setRef method was intended for setting the remote reference of a remote stub. This is unnecessary, since RemoteStubs can be created and initialized with a remote reference through use of the RemoteStub(RemoteRef) constructor.

Throws UnsupportedOperationException.

Parameters
stub:RemoteStub

the remote stub

ref:RemoteRef

the remote reference

Annotations
@Deprecated
Exceptions
UnsupportedOperationException:
always
Since
1.1