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
Servicethat creates and installs a CORBAORB.- Author:
- Stefan Guilhen, Tomasz Adamski
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameSERVICE_NAME
-
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 ofCorbaORBServicewith the specifiedORBImplementationand initializers.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.omg.CORBA.ORBgetCurrent()static StringgetORBProperty(String key)Gets the value of the specified ORB property.org.omg.CORBA.ORBgetValue()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
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 Detail
-
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
public org.omg.CORBA.ORB getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.omg.CORBA.ORB>- Throws:
IllegalStateExceptionIllegalArgumentException
-
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
nullif the property with the specified key hasn't been configured.
-
getCurrent
public static org.omg.CORBA.ORB getCurrent()
-
-