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 interfaceGlassFishORBHelper.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 intgetCSIv2PolicyType()PropertiesgetCSIv2Props()org.omg.CORBA.ORBgetORB()Get or create the default orb.StringgetORBHost(org.omg.CORBA.ORB orb)intgetORBInitialPort()intgetORBPort(org.omg.CORBA.ORB orb)intgetOTSPolicyType()ProtocolManagergetProtocolManager()Get a protocol manager for creating remote references.GlassFishORBHelper.SelectableChannelDelegategetSelectableChannelDelegate()booleanisEjbCall(org.omg.PortableInterceptor.ServerRequestInfo sri)booleanisORBInitialized()voidonShutdown()voidpostConstruct()voidsetCSIv2Prop(String name, String value)voidsetORB(org.omg.CORBA.ORB orb)voidsetSelectableChannelDelegate(GlassFishORBHelper.SelectableChannelDelegate d)
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin 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:
getORBin 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:
getORBHostin interfaceORBLocator
-
getORBPort
public int getORBPort(org.omg.CORBA.ORB orb)
- Specified by:
getORBPortin interfaceORBLocator
-
isEjbCall
public boolean isEjbCall(org.omg.PortableInterceptor.ServerRequestInfo sri)
-
-