Class GlassFishORBHelper
- java.lang.Object
-
- org.glassfish.enterprise.iiop.api.GlassFishORBHelper
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
,ORBLocator
@Service public class GlassFishORBHelper extends Object implements org.glassfish.hk2.api.PostConstruct, ORBLocator
This class exposes any orb/iiop functionality needed by modules in the app server. This prevents modules from needing any direct dependencies on the orb-iiop module.- Author:
- Mahesh Kannan Date: Jan 17, 2009
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GlassFishORBHelper.SelectableChannelDelegate
-
Field Summary
-
Fields inherited from interface org.glassfish.internal.api.ORBLocator
DEFAULT_ORB_INIT_HOST, DEFAULT_ORB_INIT_PORT, FOLB_CLIENT_GROUP_INFO_SERVICE, JNDI_CORBA_ORB_PROPERTY, JNDI_PROVIDER_URL_PROPERTY, OMG_ORB_INIT_HOST_PROPERTY, OMG_ORB_INIT_PORT_PROPERTY, ORB_CLIENT_AUTH_REQUIRED, ORB_SSL_CLIENT_REQUIRED, ORB_SSL_SERVER_REQUIRED
-
-
Constructor Summary
Constructors Constructor Description GlassFishORBHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCSIv2PolicyType()
Properties
getCSIv2Props()
org.omg.CORBA.ORB
getORB()
Get or create the default orb.String
getORBHost(org.omg.CORBA.ORB orb)
int
getORBInitialPort()
int
getORBPort(org.omg.CORBA.ORB orb)
int
getOTSPolicyType()
ProtocolManager
getProtocolManager()
Get a protocol manager for creating remote references.GlassFishORBHelper.SelectableChannelDelegate
getSelectableChannelDelegate()
boolean
isEjbCall(org.omg.PortableInterceptor.ServerRequestInfo sri)
boolean
isORBInitialized()
void
onShutdown()
void
postConstruct()
void
setCSIv2Prop(String name, String value)
void
setORB(org.omg.CORBA.ORB orb)
void
setSelectableChannelDelegate(GlassFishORBHelper.SelectableChannelDelegate d)
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
onShutdown
public void onShutdown()
-
setORB
public void setORB(org.omg.CORBA.ORB orb)
-
getORB
public org.omg.CORBA.ORB getORB()
Get or create the default orb. This can be called for any process type. However, protocol manager and CosNaming initialization only take place for the Server.- Specified by:
getORB
in interfaceORBLocator
- Returns:
- an initialized ORB instance
-
setSelectableChannelDelegate
public void setSelectableChannelDelegate(GlassFishORBHelper.SelectableChannelDelegate d)
-
getSelectableChannelDelegate
public GlassFishORBHelper.SelectableChannelDelegate getSelectableChannelDelegate()
-
getProtocolManager
public ProtocolManager getProtocolManager()
Get a protocol manager for creating remote references. ProtocolManager is only available in the server. Otherwise, this method returns null. If it's the server and the orb hasn't been already created, calling this method has the side effect of creating the orb.
-
isORBInitialized
public boolean isORBInitialized()
-
getOTSPolicyType
public int getOTSPolicyType()
-
getCSIv2PolicyType
public int getCSIv2PolicyType()
-
getCSIv2Props
public Properties getCSIv2Props()
-
getORBInitialPort
public int getORBInitialPort()
-
getORBHost
public String getORBHost(org.omg.CORBA.ORB orb)
- Specified by:
getORBHost
in interfaceORBLocator
-
getORBPort
public int getORBPort(org.omg.CORBA.ORB orb)
- Specified by:
getORBPort
in interfaceORBLocator
-
isEjbCall
public boolean isEjbCall(org.omg.PortableInterceptor.ServerRequestInfo sri)
-
-