Class CorbaORBService

java.lang.Object
org.wildfly.iiop.openjdk.service.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.jboss.msc.service.ServiceName
     

    Fields inherited from interface org.jboss.msc.service.Service

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    CorbaORBService(Properties props, Consumer<org.omg.CORBA.ORB> serviceConsumer, Supplier<ExecutorService> executorServiceSupplier, Supplier<org.jboss.as.network.SocketBinding> iiopSocketBindingSupplier, Supplier<org.jboss.as.network.SocketBinding> iiopSSLSocketBindingSupplier)
    Creates an instance of CorbaORBService with the specified ORBImplementation and initializers.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.omg.CORBA.ORB
     
    static String
    Gets the value of the specified ORB property.
    org.omg.CORBA.ORB
     
    void
    start(org.jboss.msc.service.StartContext context)
     
    void
    stop(org.jboss.msc.service.StopContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SERVICE_NAME

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

    • CorbaORBService

      public CorbaORBService(Properties props, Consumer<org.omg.CORBA.ORB> serviceConsumer, Supplier<ExecutorService> executorServiceSupplier, Supplier<org.jboss.as.network.SocketBinding> iiopSocketBindingSupplier, Supplier<org.jboss.as.network.SocketBinding> iiopSSLSocketBindingSupplier)

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

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

    • 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
      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
    • getValue

      public org.omg.CORBA.ORB getValue() throws IllegalStateException, IllegalArgumentException
      Specified by:
      getValue in interface org.jboss.msc.value.Value<org.omg.CORBA.ORB>
      Throws:
      IllegalStateException
      IllegalArgumentException
    • 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()