org.objectweb.jeremie.apis.stub_factories
Interface JRMIStubFactory
- All Superinterfaces:
- DefaultStubTable, StubFactory
- All Known Implementing Classes:
- StdStubFactory
- public interface JRMIStubFactory
- extends StubFactory, DefaultStubTable
A JRMIStubFactory is responsible for creating instances of
Jeremie stubs.
A Jeremie stub is an instance of a Java RMI stub.
| Methods inherited from interface org.objectweb.jonathan.apis.stub_factories.StubFactory |
newStub |
getStubTable
public Hashtable getStubTable()
- Retrieves the stub table associated with this stub factory.
- Returns:
- the stub table.
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.
- Parameters:
impl - the (remote) object;id - an identifier (for the remote object) that will be included
in the reference held by the stub.- Returns:
- the created Jeremie stub.
- Throws:
JonathanException - if something goes wrong.
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.
- Parameters:
target - the remote object.- Returns:
- the created request session.
- Throws:
JonathanException - if something goes wrong.