Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jac.core.dist.corba
Class CORBARemoteContainerStub  view CORBARemoteContainerStub download CORBARemoteContainerStub.java

java.lang.Object
  extended byjac.core.dist.RemoteContainer
      extended byjac.core.dist.corba.CORBARemoteContainerStub
All Implemented Interfaces:
java.io.Serializable

public class CORBARemoteContainerStub
extends jac.core.dist.RemoteContainer
implements java.io.Serializable

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:

Version:
0.8.1

Field Summary
protected  CORBARemoteContainerInterf delegate
          The CORBA stub where the job is to be delegated.
 
Fields inherited from class jac.core.dist.RemoteContainer
name, namingClassDefaultName, namingClassProp, verbose
 
Constructor Summary
CORBARemoteContainerStub(CORBARemoteContainerInterf delegate)
          Create a new remote container stub.
 
Method Summary
 void copy(int index, java.lang.String[] fields, java.lang.Object[] state)
          Copy a state into a base object.
 java.util.Vector getClientStubWrappingChain(int index)
          Get a client stub wrapping chain for a given object.
 int instantiates(java.lang.String className, java.lang.Object[] args, java.util.Vector classes, java.lang.String[] fields, java.lang.Object[] state)
          This method instantiates a className object.
 java.lang.Object invoke(int index, java.lang.String methodName, java.lang.Object[] methodArgs)
          Invoke a method on a base object.
 
Methods inherited from class jac.core.dist.RemoteContainer
bindNewContainer, bindTo, copy, equals, getByteCodeFor, getName, instantiates, invoke, isLocal, isLocal, launchRemoteGUI, resolve, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

protected CORBARemoteContainerInterf delegate
The CORBA stub where the job is to be delegated.

Constructor Detail

CORBARemoteContainerStub

public CORBARemoteContainerStub(CORBARemoteContainerInterf delegate)
Create a new remote container stub.

Method Detail

instantiates

public int instantiates(java.lang.String className,
                        java.lang.Object[] args,
                        java.util.Vector classes,
                        java.lang.String[] fields,
                        java.lang.Object[] state)
This method instantiates a className object. Clients call it to remotely instantiate an object. instantiates creates an object and returns its index. This method is part of the RMIDistdInterf interface.


copy

public void copy(int index,
                 java.lang.String[] fields,
                 java.lang.Object[] state)
Copy a state into a base object.


invoke

public java.lang.Object invoke(int index,
                               java.lang.String methodName,
                               java.lang.Object[] methodArgs)
Invoke a method on a base object. The base object is the remote counterpart of a local object that has been remotely instantiated by the jac.dist.Distd daemon.


getClientStubWrappingChain

public java.util.Vector getClientStubWrappingChain(int index)
Get a client stub wrapping chain for a given object. This method is called whenever a daemon receives as a parameter a reference to a remote object, to get the wrapping chain (for instance an authentication wrapper, a verbose wrapper, ...) needed to create a client stub for this remote reference.