Class IIOPSubsystemAdd

  • All Implemented Interfaces:
    org.jboss.as.controller.OperationDescriptor, org.jboss.as.controller.OperationStepHandler

    public class IIOPSubsystemAdd
    extends org.jboss.as.controller.AbstractBoottimeAddStepHandler

    This class implements a ModelAddOperationHandler that installs the IIOP subsystem services:

    • CorbaORBService: responsible for configuring and starting the CORBA ORB.
    • CorbaPOAService: responsible for creating and activating CORBA POAs.
    • CorbaNamingService: responsible for creating and starting the CORBA naming service.
    After the ORB is created, we create and activate the "RootPOA" and then use this POA to create the POAs required by the other services.

    Author:
    Stefan Guilhen, Tomasz Adamski
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractAddStepHandler

        org.jboss.as.controller.AbstractAddStepHandler.Parameters
    • Field Summary

      • Fields inherited from class org.jboss.as.controller.AbstractAddStepHandler

        attributes
    • Constructor Summary

      Constructors 
      Constructor Description
      IIOPSubsystemAdd​(Collection<? extends org.jboss.as.controller.AttributeDefinition> attributes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Properties getConfigurationProperties​(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode model)
      Obtains the subsystem configuration properties from the specified ModelNode, using default values for undefined properties.
      protected void launchServices​(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode model)  
      protected void performBoottime​(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model)  
      protected void populateModel​(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.registry.Resource resource)  
      protected void recordCapabilitiesAndRequirements​(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.registry.Resource resource)  
      • Methods inherited from class org.jboss.as.controller.AbstractBoottimeAddStepHandler

        performBoottime, performRuntime, rollbackRuntime
      • Methods inherited from class org.jboss.as.controller.AbstractAddStepHandler

        createResource, createResource, execute, getAttributes, performRuntime, populateModel, populateModel, requiresRuntime
    • Constructor Detail

      • IIOPSubsystemAdd

        public IIOPSubsystemAdd​(Collection<? extends org.jboss.as.controller.AttributeDefinition> attributes)
    • Method Detail

      • performBoottime

        protected void performBoottime​(org.jboss.as.controller.OperationContext context,
                                       org.jboss.dmr.ModelNode operation,
                                       org.jboss.dmr.ModelNode model)
                                throws org.jboss.as.controller.OperationFailedException
        Overrides:
        performBoottime in class org.jboss.as.controller.AbstractBoottimeAddStepHandler
        Throws:
        org.jboss.as.controller.OperationFailedException
      • populateModel

        protected void populateModel​(org.jboss.as.controller.OperationContext context,
                                     org.jboss.dmr.ModelNode operation,
                                     org.jboss.as.controller.registry.Resource resource)
                              throws org.jboss.as.controller.OperationFailedException
        Overrides:
        populateModel in class org.jboss.as.controller.AbstractAddStepHandler
        Throws:
        org.jboss.as.controller.OperationFailedException
      • recordCapabilitiesAndRequirements

        protected void recordCapabilitiesAndRequirements​(org.jboss.as.controller.OperationContext context,
                                                         org.jboss.dmr.ModelNode operation,
                                                         org.jboss.as.controller.registry.Resource resource)
                                                  throws org.jboss.as.controller.OperationFailedException
        Overrides:
        recordCapabilitiesAndRequirements in class org.jboss.as.controller.AbstractAddStepHandler
        Throws:
        org.jboss.as.controller.OperationFailedException
      • launchServices

        protected void launchServices​(org.jboss.as.controller.OperationContext context,
                                      org.jboss.dmr.ModelNode model)
                               throws org.jboss.as.controller.OperationFailedException
        Throws:
        org.jboss.as.controller.OperationFailedException
      • getConfigurationProperties

        protected Properties getConfigurationProperties​(org.jboss.as.controller.OperationContext context,
                                                        org.jboss.dmr.ModelNode model)
                                                 throws org.jboss.as.controller.OperationFailedException

        Obtains the subsystem configuration properties from the specified ModelNode, using default values for undefined properties. If the property has a IIOP equivalent, it is translated into its IIOP counterpart before being added to the returned Properties object.

        Parameters:
        model - the ModelNode that contains the subsystem configuration properties.
        Returns:
        a Properties instance containing all configured subsystem properties.
        Throws:
        org.jboss.as.controller.OperationFailedException - if an error occurs while resolving the properties.