Package org.wildfly.iiop.openjdk
Class IIOPSubsystemAdd
java.lang.Object
org.jboss.as.controller.AbstractAddStepHandler
org.jboss.as.controller.AbstractBoottimeAddStepHandler
org.wildfly.iiop.openjdk.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 CORBAORB.CorbaPOAService: responsible for creating and activating CORBAPOAs.CorbaNamingService: responsible for creating and starting the CORBA naming service.
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
ConstructorsConstructorDescriptionIIOPSubsystemAdd(Collection<? extends org.jboss.as.controller.AttributeDefinition> attributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertiesgetConfigurationProperties(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode model) Obtains the subsystem configuration properties from the specifiedModelNode, using default values for undefined properties.protected voidlaunchServices(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode model) protected voidperformBoottime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) protected voidpopulateModel(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.registry.Resource resource) protected voidrecordCapabilitiesAndRequirements(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, rollbackRuntimeMethods inherited from class org.jboss.as.controller.AbstractAddStepHandler
createResource, createResource, execute, getAttributes, performRuntime, populateModel, populateModel, requiresRuntime
-
Constructor Details
-
IIOPSubsystemAdd
public IIOPSubsystemAdd(Collection<? extends org.jboss.as.controller.AttributeDefinition> attributes)
-
-
Method Details
-
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:
performBoottimein classorg.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:
populateModelin classorg.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:
recordCapabilitiesAndRequirementsin classorg.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 returnedPropertiesobject.- Parameters:
model- theModelNodethat contains the subsystem configuration properties.- Returns:
- a
Propertiesinstance containing all configured subsystem properties. - Throws:
org.jboss.as.controller.OperationFailedException- if an error occurs while resolving the properties.
-