Package com.sun.corba.ee.spi.osgi
Class ORBFactory
java.lang.Object
com.sun.corba.ee.spi.osgi.ORBFactory
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic ORB
create()
Create but do not initialize an ORB instance.static ORB
create
(String[] args, Properties props, boolean useOSGi) static void
initialize
(ORB orb, String[] args, Properties props, boolean useOSGi) Complete the initialization of the ORB.
-
Constructor Details
-
ORBFactory
private ORBFactory()
-
-
Method Details
-
create
-
create
Create but do not initialize an ORB instance.- Returns:
- The newly created uninitialized ORB.
-
initialize
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).
-