org.objectweb.jonathan.apis.stub_factories
Interface StubFactory

All Known Implementing Classes:
MyRmiStubFactory, RmiStubFactory

public interface StubFactory

A Stub factory is a factory for stubs...


Method Summary
 java.lang.Object newStub(SessionIdentifier session_id, Identifier[] ids, Context hints)
          Creates a new stub.
 

Method Detail

newStub

java.lang.Object newStub(SessionIdentifier session_id,
                         Identifier[] ids,
                         Context hints)
                         throws JonathanException
Creates a new stub.

A stub plays two roles:

Parameters:
session_id - a session identifier, to be used to send marshalled data to the object represented by the stub;
ids - the set of identifiers of the stub;
hints - other data possibly used to create the stub.
Returns:
a stub
Throws:
JonathanException - if something goes wrong.


Copyright © 2008 OW2 Consortium. All Rights Reserved.