org.xmlBlaster.util.protocol.corba
Class OrbInstanceWrapper
java.lang.Object
org.xmlBlaster.util.protocol.corba.OrbInstanceWrapper
public class OrbInstanceWrapper
- extends java.lang.Object
OrbInstanceWrapper wraps an org.omg.CORBA.ORB instance/singleton in Global scope.
The first call to getOrb() creates an ORB and following calls increment a reference counter.
Calls to shutdown() reduce the reference counter. If the counter reaches 0 the
orb is destroyed.
Method Summary |
org.omg.CORBA.ORB |
getOrb(java.lang.String[] args,
java.util.Properties props,
AddressBase address)
On first call an orb is created, further calls return the same orb instance. |
void |
releaseOrb(boolean wait_for_completion)
When the same amount releasOrb() is called as getOrb(), the internal orb is shutdown. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ME
private java.lang.String ME
glob
private Global glob
orb
private org.omg.CORBA.ORB orb
referenceCounter
private int referenceCounter
OrbInstanceWrapper
public OrbInstanceWrapper(Global glob)
getOrb
public org.omg.CORBA.ORB getOrb(java.lang.String[] args,
java.util.Properties props,
AddressBase address)
- On first call an orb is created, further calls return the same orb instance.
- Parameters:
glob
- args
- command line args, see org.omg.CORBA.ORB.init(), use glob.getProperty().getProperties()props
- application-specific properties; may be null
, see org.omg.CORBA.ORB.init(String[], Properties)address
- The configuration of the address
- Returns:
- Access to a new created orb handle
- See Also:
ORB.init(String[], Properties)
releaseOrb
public void releaseOrb(boolean wait_for_completion)
- When the same amount releasOrb() is called as getOrb(), the internal orb is shutdown.
Copyright © 1999-2014 The xmlBlaster.org contributers.