Package org.wildfly.iiop.openjdk.service
Class CorbaPOAService
- java.lang.Object
-
- org.wildfly.iiop.openjdk.service.CorbaPOAService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<org.omg.PortableServer.POA>,org.jboss.msc.value.Value<org.omg.PortableServer.POA>
public class CorbaPOAService extends Object implements org.jboss.msc.service.Service<org.omg.PortableServer.POA>
This class implements a service that creates and activates
org.omg.PortableServer.POAobjects.- Author:
- Stefan Guilhen, Tomasz Adamski
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameINTERFACE_REPOSITORY_SERVICE_NAMEstatic org.jboss.msc.service.ServiceNameROOT_SERVICE_NAMEstatic org.jboss.msc.service.ServiceNameSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description CorbaPOAService(String poaName, String bindingName, boolean sslOnly)Creates aCorbaPOAServicewith the specified POA name and binding name.CorbaPOAService(String poaName, String bindingName, boolean sslOnly, org.omg.PortableServer.IdAssignmentPolicyValue idAssignmentPolicyValue, org.omg.PortableServer.IdUniquenessPolicyValue idUniquenessPolicyValue, org.omg.PortableServer.ImplicitActivationPolicyValue implicitActivationPolicyValue, org.omg.PortableServer.LifespanPolicyValue lifespanPolicyValue, org.omg.PortableServer.RequestProcessingPolicyValue requestProcessingPolicyValue, org.omg.PortableServer.ServantRetentionPolicyValue servantRetentionPolicyValue, org.omg.PortableServer.ThreadPolicyValue threadPolicyValue)Creates aCorbaPOAServicewith the specified POA name, binding name and policy values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.msc.inject.Injector<org.omg.CORBA.ORB>getORBInjector()org.jboss.msc.inject.Injector<org.omg.PortableServer.POA>getParentPOAInjector()org.omg.PortableServer.POAgetValue()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Field Detail
-
SERVICE_NAME
public static final org.jboss.msc.service.ServiceName SERVICE_NAME
-
ROOT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName ROOT_SERVICE_NAME
-
INTERFACE_REPOSITORY_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName INTERFACE_REPOSITORY_SERVICE_NAME
-
-
Constructor Detail
-
CorbaPOAService
public CorbaPOAService(String poaName, String bindingName, boolean sslOnly)
Creates a
CorbaPOAServicewith the specified POA name and binding name. ThePOAcreated by this service will not be associated with any policies.- Parameters:
poaName- the name of thePOAthat will be created by this service (ex. "RootPOA").bindingName- the JNDI context name where the createdPOAwill be bound. If null, the JNDI binding won't be performed.
-
CorbaPOAService
public CorbaPOAService(String poaName, String bindingName, boolean sslOnly, org.omg.PortableServer.IdAssignmentPolicyValue idAssignmentPolicyValue, org.omg.PortableServer.IdUniquenessPolicyValue idUniquenessPolicyValue, org.omg.PortableServer.ImplicitActivationPolicyValue implicitActivationPolicyValue, org.omg.PortableServer.LifespanPolicyValue lifespanPolicyValue, org.omg.PortableServer.RequestProcessingPolicyValue requestProcessingPolicyValue, org.omg.PortableServer.ServantRetentionPolicyValue servantRetentionPolicyValue, org.omg.PortableServer.ThreadPolicyValue threadPolicyValue)
Creates a
CorbaPOAServicewith the specified POA name, binding name and policy values.- Parameters:
poaName- the name of thePOAthat will be created by this service (ex. "RootPOA").bindingName- the JNDI context name where the createdPOAwill be bound. If null, the JNDI binding won't be performed.idAssignmentPolicyValue- theIdAssignmentPolicyValuethat will be associated with the createdPOA. Can be null.idUniquenessPolicyValue- theIdUniquenessPolicyValuethat will be associated with the createdPOA. Can be null.implicitActivationPolicyValue- theImplicitActivationPolicyValuethat will be associated with the createdPOA. Can be null.lifespanPolicyValue- theLifespanPolicyValuethat will be associated with the createdPOA. Can be null.requestProcessingPolicyValue- theRequestProcessingPolicyValuethat will be associated with the createdPOA. Can be null.servantRetentionPolicyValue- theServantRetentionPolicyValuethat will be associated with the createdPOA. Can be null.threadPolicyValue- theThreadPolicyValuethat will be associated with the createdPOA. Can be null.
-
-
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.PortableServer.POA getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.omg.PortableServer.POA>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getORBInjector
public org.jboss.msc.inject.Injector<org.omg.CORBA.ORB> getORBInjector()
-
getParentPOAInjector
public org.jboss.msc.inject.Injector<org.omg.PortableServer.POA> getParentPOAInjector()
-
-