|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.dist.RemoteContainer | +--org.objectweb.jac.core.dist.corba.CORBARemoteContainerStub
CORBARemoteContainerStub acts as a client stub to access a remote container. CORBARemoteContainerStub holds a CORBARemoteContainerInterf instance. This is the client stub of the remote CORBARemoteContainer object that owns as a delegate the container that is to be accessed.
Note: what we need is an instance of something that extends RemoteContainer. But we can't have an object that is both a client stub for a remote CORBA object and a RemoteContainer (no multiple inheritance in Java). So we implemented this delegating scheme where:
CORBARemoteContainer
,
Serialized FormField Summary | |
protected CORBARemoteContainerInterf |
delegate
The CORBA stub where the job is to be delegated. |
Fields inherited from class org.objectweb.jac.core.dist.RemoteContainer |
name, verbose |
Constructor Summary | |
CORBARemoteContainerStub(CORBARemoteContainerInterf delegate)
Create a new remote container stub. |
Method Summary | |
void |
copy(int index,
String[] fields,
Object[] state)
Copy a state into a base object. |
Vector |
getClientStubWrappingChain(int index)
Get a client stub wrapping chain for a given object. |
int |
instantiates(String className,
Object[] args,
Vector classes,
String[] fields,
Object[] state)
This method instantiates a className object. |
Object |
invoke(int index,
String methodName,
Object[] methodArgs)
Invoke a method on a base object. |
Methods inherited from class org.objectweb.jac.core.dist.RemoteContainer |
bindNewContainer, bindTo, copy, equals, getByteCodeFor, getName, instantiates, invoke, invokeRoleMethod, isLocal, isLocal, launchRemoteGUI, resolve, setName, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected CORBARemoteContainerInterf delegate
Constructor Detail |
public CORBARemoteContainerStub(CORBARemoteContainerInterf delegate)
delegate
- the stub where the job is to be delegatedMethod Detail |
public int instantiates(String className, Object[] args, Vector classes, String[] fields, Object[] state)
className
- the class name to instantiateargs
- initialization arguments for the instantiationclasses
- remote classes to loadfields
- the object fields that are part of the statestate
- the state to copy
public void copy(int index, String[] fields, Object[] state)
index
- the callee index (see org.objectweb.jac.core.JacObject)fields
- the object fields that are part of the statestate
- the state to copypublic Object invoke(int index, String methodName, Object[] methodArgs)
index
- the callee index (see org.objectweb.jac.core.JacObject)methodName
- the callee method namemethodArgs
- the callee method arguments
public Vector getClientStubWrappingChain(int index)
index
- the base object index (see org.objectweb.jac.core.JacObject)
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |