Class ORB

java.lang.Object
com.arjuna.orbportability.ORB

public class ORB extends Object
An attempt at some ORB portable ways of interacting with the ORB. NOTE: initORB *must* be called if you want to use the pre- and post- initialisation mechanisms.
Since:
JTS 1.0.
Version:
$Id: ORB.java 2342 2006-03-30 13:06:17Z $
Author:
Mark Little (mark@arjuna.com), Richard Begg (richard.begg@arjuna.com)
  • Constructor Details

    • ORB

      protected ORB(String orbName)
  • Method Details

    • initORB

      public void initORB() throws org.omg.CORBA.SystemException
      Initialise the default ORB.
      Throws:
      org.omg.CORBA.SystemException
    • initORB

      public void initORB(Applet a, Properties p) throws org.omg.CORBA.SystemException
      Initialise the ORB.
      Throws:
      org.omg.CORBA.SystemException
    • initORB

      public void initORB(String[] s, Properties p) throws org.omg.CORBA.SystemException
      Initialise the ORB.
      Throws:
      org.omg.CORBA.SystemException
    • addAttribute

      public boolean addAttribute(Attribute p)
    • shutdown

      public void shutdown()
      Shutdown the ORB asynchronously.
    • shutdown

      public void shutdown(boolean waitForCompletion)
      Shutdown the ORB. Define whether this should be sync or async.
    • orb

      public org.omg.CORBA.ORB orb()
      Obtain a reference to the current ORB.
    • setOrb

      public boolean setOrb(org.omg.CORBA.ORB theORB)
    • addPreShutdown

      public void addPreShutdown(PreShutdown c)
    • addPostShutdown

      public void addPostShutdown(PostShutdown c)
    • destroy

      public void destroy() throws org.omg.CORBA.SystemException
      Throws:
      org.omg.CORBA.SystemException
    • getInstance

      public static ORB getInstance(String uniqueId)
      Retrieve an ORB instance given a unique name, if an ORB instance with this name doesn't exist then create it.
      Parameters:
      uniqueId - The name of the ORB instance to retrieve.
      Returns:
      The ORB instance refered to by the name given.
    • setORBShutdownListener

      public void setORBShutdownListener(ORBShutdownListener orbShutdownListener)