com.iona.corbautil
Interface ImportExportAlgorithm

All Known Implementing Classes:
ImportExportExampleAlgorithm

public interface ImportExportAlgorithm

Users can implement this interface to develop their own algorithms for importing and exporting object references. For example, implement this interface with a class called com.acme.MyAlgorithm. Then, if you specify "java_class#com.acme.MyAlgorithm" as the instructions, your implementation class will be dynamically loaded and importObjRef() and exportObjRef() will be invoked upon it.


Method Summary
 void exportObjRef(org.omg.CORBA.ORB orb, org.omg.CORBA.Object obj, java.lang.String instructions)
          Exports the object reference using the specified instructions.
 org.omg.CORBA.Object importObjRef(org.omg.CORBA.ORB orb, java.lang.String instructions)
          Imports the object reference using the specified instructions.
 

Method Detail

exportObjRef

public void exportObjRef(org.omg.CORBA.ORB orb,
                         org.omg.CORBA.Object obj,
                         java.lang.String instructions)
                  throws ImportExportException
Exports the object reference using the specified instructions.

Parameters:
orb - The orb.
obj - The object
instructions - The instructions
ImportExportException

importObjRef

public org.omg.CORBA.Object importObjRef(org.omg.CORBA.ORB orb,
                                         java.lang.String instructions)
                                  throws ImportExportException
Imports the object reference using the specified instructions.

Parameters:
orb - The orb.
instructions - The instructions
Returns:
The object.
ImportExportException