Package org.wildfly.iiop.openjdk.service
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
FieldsFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionCorbaORBService(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 ofCorbaORBServicewith the specifiedORBImplementationand initializers. -
Method Summary
-
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
CorbaORBServicewith the specifiedORBImplementationand initializers.- Parameters:
props- aPropertiesinstance 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:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.omg.CORBA.ORB>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getORBProperty
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
nullif the property with the specified key hasn't been configured.
-
getCurrent
public static org.omg.CORBA.ORB getCurrent()
-