public class StdStubFactory extends Object implements JRMIStubFactory
Jeremie
stub factory
.
The factory maintains a table associating Jeremie stubs with the target remote objects that they represent.
Modifier and Type | Class and Description |
---|---|
protected class |
StdStubFactory.DynamicRequestSession
Provides an implementation of a
request session . |
protected class |
StdStubFactory.RequestSessionImpl
Provides an implementation of a
request session . |
default_stub_table
Constructor and Description |
---|
StdStubFactory(org.objectweb.jonathan.presentation.api.MarshallerFactory marshaller_factory,
org.objectweb.jonathan.apis.kernel.ClassPathFinder classpath_finder)
Constructs a new Jeremie stub factory.
|
Modifier and Type | Method and Description |
---|---|
Hashtable |
getStubTable()
Retrieves the stub table associated with this stub factory.
|
org.objectweb.jonathan.protocols.api.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,
org.objectweb.jonathan.binding.api.Identifier id)
Creates a stub object to represent the given (remote) object
with a reference containing the given identifier.
|
Object |
newStub(org.objectweb.jonathan.protocols.api.SessionIdentifier ep,
org.objectweb.jonathan.binding.api.Identifier[] ids,
org.objectweb.jonathan.apis.kernel.Context hints)
Creates a stub object with a reference containing the given
identifiers and the given session identifier.
|
void |
setStubNameExtension(String ext)
Optional parameters...
|
public StdStubFactory(org.objectweb.jonathan.presentation.api.MarshallerFactory marshaller_factory, org.objectweb.jonathan.apis.kernel.ClassPathFinder classpath_finder)
_c
- a context, used to retrieve the default class loader;mfactory
- a marshaller factory.classpath_finder
- a class path finderpublic void setStubNameExtension(String ext)
public Hashtable getStubTable()
getStubTable
in interface JRMIStubFactory
public RemoteStub newStub(Object impl, org.objectweb.jonathan.binding.api.Identifier id) throws org.objectweb.jonathan.apis.kernel.JonathanException
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.org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public Object newStub(org.objectweb.jonathan.protocols.api.SessionIdentifier ep, org.objectweb.jonathan.binding.api.Identifier[] ids, org.objectweb.jonathan.apis.kernel.Context hints) throws org.objectweb.jonathan.apis.kernel.JonathanException
newStub
in interface org.objectweb.jonathan.stub_factories.api.StubFactory
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.org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public org.objectweb.jonathan.protocols.api.RequestSession newRequestSession(Object target) throws org.objectweb.jonathan.apis.kernel.JonathanException
newRequestSession
in interface JRMIStubFactory
target
- the remote object.org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.