org.objectweb.jeremie.stub_factories.std
Class StdStubFactory
- DefaultStubTable, JRMIStubFactory, StubFactory
public class StdStubFactory
Provides an implementation of a
Jeremie
stub factory
.
The factory maintains a table associating Jeremie
stubs with the target remote objects that they represent.
StdStubFactory(MarshallerFactory marshaller_factory, ClassPathFinder classpath_finder) - Constructs a new Jeremie stub factory.
|
Hashtable | getStubTable() - Retrieves the stub table associated with this stub factory.
|
RequestSession | newRequestSession(Object target) - Creates a request session which can be used by the stub to send data
to the given remote object.
|
RemoteStub | newStub(Object impl, Identifier id) - Creates a stub object to represent the given (remote) object
with a reference containing the given identifier.
|
Object | newStub(SessionIdentifier ep, Identifier[] ids, Context hints) - Creates a stub object with a reference containing the given
identifiers and the given session identifier.
|
void | setStubNameExtension(String ext) - Optional parameters...
|
StdStubFactory
public StdStubFactory(MarshallerFactory marshaller_factory,
ClassPathFinder classpath_finder)
Constructs a new Jeremie stub factory.
classpath_finder
- a class path finder
getStubTable
public Hashtable getStubTable()
Retrieves the stub table associated with this stub factory.
- getStubTable in interface JRMIStubFactory
- the stub table.
newRequestSession
public RequestSession newRequestSession(Object target)
throws JonathanException
Creates a request session which can be used by the stub to send data
to the given remote object.
- newRequestSession in interface JRMIStubFactory
target
- the remote object.
- the created request session.
newStub
public RemoteStub newStub(Object impl,
Identifier id)
throws JonathanException
Creates a stub object to represent the given (remote) object
with a reference containing the given identifier.
- newStub in interface JRMIStubFactory
impl
- the (remote) object;id
- an identifier (for the remote object) that will be included
in the reference held by the stub.
- a stub.
newStub
public Object newStub(SessionIdentifier ep,
Identifier[] ids,
Context hints)
throws JonathanException
Creates a stub object with a reference containing the given
identifiers and the given session identifier.
ep
- a session identifier to be used to send marshalled data
to the object represented by the stub;ids
- a set of identifiers;hints
- other data possibly used to create the stub.
- a stub.
setStubNameExtension
public void setStubNameExtension(String ext)
Optional parameters...