Package org.wildfly.iiop.openjdk.service
Class CorbaNamingService
- java.lang.Object
-
- org.wildfly.iiop.openjdk.service.CorbaNamingService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<org.omg.CosNaming.NamingContextExt>,org.jboss.msc.value.Value<org.omg.CosNaming.NamingContextExt>
public class CorbaNamingService extends Object implements org.jboss.msc.service.Service<org.omg.CosNaming.NamingContextExt>
This class implements a
Servicethat provides the default CORBA naming service for JBoss to use.- 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 CorbaNamingService(Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.msc.inject.Injector<org.omg.PortableServer.POA>getNamingPOAInjector()Obtains a reference to thePOAinjector which allows the injection of thePOAthat will be used activate the naming service.org.jboss.msc.inject.Injector<org.omg.CORBA.ORB>getORBInjector()Obtains a reference to theORBinjector which allows the injection of the runningORBthat will be used to initialize the naming service.org.jboss.msc.inject.Injector<org.omg.PortableServer.POA>getRootPOAInjector()Obtains a reference to theRootPOAinjector which allows the injection of the rootPOAthat will be used to initialize the naming service.org.omg.CosNaming.NamingContextExtgetValue()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
CorbaNamingService
public CorbaNamingService(Properties props)
-
-
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.CosNaming.NamingContextExt getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.omg.CosNaming.NamingContextExt>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getORBInjector
public org.jboss.msc.inject.Injector<org.omg.CORBA.ORB> getORBInjector()
Obtains a reference to the
ORBinjector which allows the injection of the runningORBthat will be used to initialize the naming service.- Returns:
- the
Injector<ORB>used to inject the runningORB.
-
getRootPOAInjector
public org.jboss.msc.inject.Injector<org.omg.PortableServer.POA> getRootPOAInjector()
Obtains a reference to the
RootPOAinjector which allows the injection of the rootPOAthat will be used to initialize the naming service.- Returns:
- the
Injector<POA>used to inject the rootPOA.
-
getNamingPOAInjector
public org.jboss.msc.inject.Injector<org.omg.PortableServer.POA> getNamingPOAInjector()
Obtains a reference to the
POAinjector which allows the injection of thePOAthat will be used activate the naming service.- Returns:
- the
Injector<POA>used to inject the naming servicePOA.
-
-