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)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()org.jboss.msc.value.InjectedValue<ExecutorService>getExecutorInjector()Obtains a reference to the executor service injector.org.jboss.msc.inject.Injector<org.jboss.as.network.SocketBinding>getIIOPSocketBindingInjector()Obtains a reference to the IIOP socket binding injector.org.jboss.msc.inject.Injector<org.jboss.as.network.SocketBinding>getIIOPSSLSocketBindingInjector()Obtains a reference to the IIOP/SSL socket binding injector.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)
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- Specified by:
startin interfaceorg.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:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<org.omg.CORBA.ORB>
-
getValue
public org.omg.CORBA.ORB getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.omg.CORBA.ORB>- Throws:
IllegalStateExceptionIllegalArgumentException
-
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
ServiceBindingcontaining 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
ServiceBindingcontaining 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
ExecutorServicefor 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
nullif the property with the specified key hasn't been configured.
-
getCurrent
public static org.omg.CORBA.ORB getCurrent()
-
-