org.objectweb.jeremie.stub_factories.api
Interface JRMIStubFactory
- StubFactory, DefaultStubTable
- StdStubFactory
public interface JRMIStubFactory
A
JRMIStubFactory is responsible for creating instances of
Jeremie stubs.
A Jeremie stub is an instance of a
Java RMI stub
.
Hashtable | getStubTable() - Retrieves the stub table associated with this stub factory.
|
RequestSession | newRequestSession(Object target) - Creates a request session which can be used by a stub to send data
to the given remote object.
|
RemoteStub | newStub(Object impl, Identifier id) - Creates a Jeremie stub to represent the given (remote) object
and holding a reference containing the given identifier.
|
getStubTable
public Hashtable getStubTable()
Retrieves the stub table associated with this stub factory.
- the stub table.
newRequestSession
public RequestSession newRequestSession(Object target)
throws JonathanException
Creates a request session which can be used by a stub to send data
to the given remote object.
target
- the remote object.
- the created request session.
newStub
public RemoteStub newStub(Object impl,
Identifier id)
throws JonathanException
Creates a Jeremie stub to represent the given (remote) object
and holding a reference containing the given identifier.
impl
- the (remote) object;id
- an identifier (for the remote object) that will be included
in the reference held by the stub.
- the created Jeremie stub.