public class SocketBindingGroupAddHandler extends AbstractSocketBindingGroupAddHandler
AbstractAddStepHandler.Parameters
Modifier and Type | Field and Description |
---|---|
static SocketBindingGroupAddHandler |
INSTANCE |
OPERATION_NAME
attributes
Modifier and Type | Method and Description |
---|---|
protected void |
populateModel(OperationContext context,
org.jboss.dmr.ModelNode operation,
Resource resource)
Populate the given resource in the persistent configuration model based on the values in the given operation.
|
protected void |
recordCapabilitiesAndRequirements(OperationContext context,
org.jboss.dmr.ModelNode operation,
Resource resource)
Record any new
capabilities that are available as
a result of this operation, as well as any requirements for other capabilities that now exist. |
createResource, createResource, execute, performRuntime, performRuntime, performRuntime, populateModel, populateModel, requiresRuntime, requiresRuntimeVerification, rollbackRuntime, rollbackRuntime
public static final SocketBindingGroupAddHandler INSTANCE
protected void populateModel(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource) throws OperationFailedException
OperationContext.Stage.MODEL
.
This default implementation simply calls AbstractAddStepHandler.populateModel(ModelNode, org.jboss.as.controller.registry.Resource)
.
populateModel
in class AbstractSocketBindingGroupAddHandler
context
- the operation contextoperation
- the operationresource
- the resource that corresponds to the address of operation
OperationFailedException
- if operation
is invalid or populating the model otherwise failsprotected void recordCapabilitiesAndRequirements(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource) throws OperationFailedException
AbstractAddStepHandler
capabilities
that are available as
a result of this operation, as well as any requirements for other capabilities that now exist. This method is
invoked during OperationContext.Stage.MODEL
.
Any changes made by this method will automatically be discarded if the operation rolls back.
This default implementation registers any capabilities provided to the constructor and asks any
AttributeDefinition
provided to the constructor to
add capability requirements
.
recordCapabilitiesAndRequirements
in class AbstractAddStepHandler
context
- the context. Will not be null
operation
- the operation that is executing Will not be null
resource
- the resource that has been added. Will reflect any updates made by
AbstractAddStepHandler.populateModel(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)
. Will
not be null
OperationFailedException
Copyright © 2023 JBoss by Red Hat. All rights reserved.