Package com.sun.corba.ee.spi.osgi
Class ORBFactory
- java.lang.Object
-
- com.sun.corba.ee.spi.osgi.ORBFactory
-
public class ORBFactory extends java.lang.Object
A simple factory for creating our ORB that avoids the ClassLoader problems with org.omg.CORBA.ORB.init, which must load the ORB impl class. The usual OSGi configuration prevents this, so we just directly use a static factory method here. Note that this also assumes that the created ORB should be suitable for running inside GlassFish v3.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ORBFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ORB
create()
Create but do not initialize an ORB instance.static ORB
create(java.lang.String[] args, java.util.Properties props, boolean useOSGi)
static void
initialize(ORB orb, java.lang.String[] args, java.util.Properties props, boolean useOSGi)
Complete the initialization of the ORB.
-
-
-
Method Detail
-
create
public static ORB create(java.lang.String[] args, java.util.Properties props, boolean useOSGi)
-
create
public static ORB create()
Create but do not initialize an ORB instance.- Returns:
- The newly created uninitialized ORB.
-
initialize
public static void initialize(ORB orb, java.lang.String[] args, java.util.Properties props, boolean useOSGi)
Complete the initialization of the ORB. useOSGi if true will cause an ORB initialization suitable for use in GlassFish v3.- Parameters:
orb
- The orb to initialize.args
- Usual args passed to an ORB.init() call.props
- Usual props passed to an ORB.init() call.useOSGi
- true if the ORB is running in GFv3 or later (generally means an OSGI environment).
-
-