Class CorbaORBService

  • All Implemented Interfaces:
    org.jboss.msc.Service, org.jboss.msc.service.Service<org.omg.CORBA.ORB>, org.jboss.msc.value.Value<org.omg.CORBA.ORB>

    public class CorbaORBService
    extends Object
    implements org.jboss.msc.service.Service<org.omg.CORBA.ORB>

    This class implements a Service that creates and installs a CORBA ORB.

    Author:
    Stefan Guilhen, Tomasz Adamski
    • Field Detail

      • SERVICE_NAME

        public static final org.jboss.msc.service.ServiceName SERVICE_NAME
    • Constructor Detail

      • CorbaORBService

        public CorbaORBService​(Properties props)

        Creates an instance of CorbaORBService with the specified ORBImplementation and initializers.

        Parameters:
        props - a Properties instance containing the IIOP subsystem configuration properties.
    • Method Detail

      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Specified by:
        start in interface org.jboss.msc.service.Service<org.omg.CORBA.ORB>
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service
        Specified by:
        stop in interface org.jboss.msc.service.Service<org.omg.CORBA.ORB>
      • getIIOPSocketBindingInjector

        public org.jboss.msc.inject.Injector<org.jboss.as.network.SocketBinding> getIIOPSocketBindingInjector()

        Obtains a reference to the IIOP socket binding injector. This injector is used to inject a ServiceBinding containing the IIOP socket properties.

        Returns:
        a reference to the Injector<SocketBinding> used to inject the IIOP socket properties.
      • getIIOPSSLSocketBindingInjector

        public org.jboss.msc.inject.Injector<org.jboss.as.network.SocketBinding> getIIOPSSLSocketBindingInjector()

        Obtains a reference to the IIOP/SSL socket binding injector. This injector is used to inject a ServiceBinding containing the IIOP/SSL socket properties.

        Returns:
        a reference to the Injector<SocketBinding> used to inject the IIOP/SSL socket properties.
      • getExecutorInjector

        public org.jboss.msc.value.InjectedValue<ExecutorService> getExecutorInjector()

        Obtains a reference to the executor service injector. This injector is used to inject a ExecutorService for use in blocking tasks during startup or shutdown.

        Returns:
        a reference to the Injector<Executor> used to inject the executor service.
      • getORBProperty

        public static String getORBProperty​(String key)

        Gets the value of the specified ORB property. All ORB properties can be queried using this method. This includes the properties that have been explicitly set by this service prior to creating the ORB and all IIOP properties that have been specified in the IIOP subsystem configuration.

        Parameters:
        key - the property key.
        Returns:
        the property value or null if the property with the specified key hasn't been configured.
      • getCurrent

        public static org.omg.CORBA.ORB getCurrent()