Class 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.POA objects.

    Author:
    Stefan Guilhen, Tomasz Adamski
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.jboss.msc.service.ServiceName INTERFACE_REPOSITORY_SERVICE_NAME  
      static org.jboss.msc.service.ServiceName ROOT_SERVICE_NAME  
      static org.jboss.msc.service.ServiceName SERVICE_NAME  
      • Fields inherited from interface org.jboss.msc.service.Service

        NULL, NULL_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      CorbaPOAService​(String poaName, String bindingName, boolean sslOnly)
      Creates a CorbaPOAService with 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 a CorbaPOAService with the specified POA name, binding name and policy values.
    • 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 CorbaPOAService with the specified POA name and binding name. The POA created by this service will not be associated with any policies.

        Parameters:
        poaName - the name of the POA that will be created by this service (ex. "RootPOA").
        bindingName - the JNDI context name where the created POA will 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 CorbaPOAService with the specified POA name, binding name and policy values.

        Parameters:
        poaName - the name of the POA that will be created by this service (ex. "RootPOA").
        bindingName - the JNDI context name where the created POA will be bound. If null, the JNDI binding won't be performed.
        idAssignmentPolicyValue - the IdAssignmentPolicyValue that will be associated with the created POA. Can be null.
        idUniquenessPolicyValue - the IdUniquenessPolicyValue that will be associated with the created POA. Can be null.
        implicitActivationPolicyValue - the ImplicitActivationPolicyValue that will be associated with the created POA. Can be null.
        lifespanPolicyValue - the LifespanPolicyValue that will be associated with the created POA. Can be null.
        requestProcessingPolicyValue - the RequestProcessingPolicyValue that will be associated with the created POA. Can be null.
        servantRetentionPolicyValue - the ServantRetentionPolicyValue that will be associated with the created POA. Can be null.
        threadPolicyValue - the ThreadPolicyValue that will be associated with the created POA. Can be null.
    • Method Detail

      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Specified by:
        start in interface org.jboss.msc.service.Service<org.omg.PortableServer.POA>
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service
        Specified by:
        stop in interface org.jboss.msc.service.Service<org.omg.PortableServer.POA>
      • getORBInjector

        public org.jboss.msc.inject.Injector<org.omg.CORBA.ORB> getORBInjector()
      • getParentPOAInjector

        public org.jboss.msc.inject.Injector<org.omg.PortableServer.POA> getParentPOAInjector()