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 Service that provides the default CORBA naming service for JBoss to use.
- Author:
- Stefan Guilhen, Tomasz Adamski
-
Field Summary
FieldsFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.msc.inject.Injector<org.omg.PortableServer.POA>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>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>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)
-
Field Details
-
SERVICE_NAME
public static final org.jboss.msc.service.ServiceName SERVICE_NAME
-
-
Constructor Details
-
CorbaNamingService
-
-
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
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.
-