public class InterfaceAddHandler extends AbstractAddStepHandler
AbstractAddStepHandler.Parameters
Modifier and Type | Field and Description |
---|---|
static InterfaceAddHandler |
NAMED_INSTANCE
Deprecated.
|
static InterfaceAddHandler |
SPECIFIED_INSTANCE
Deprecated.
|
attributes
Modifier | Constructor and Description |
---|---|
protected |
InterfaceAddHandler(boolean specified)
Create the InterfaceAddHandler
|
Modifier and Type | Method and Description |
---|---|
protected ParsedInterfaceCriteria |
getCriteria(OperationContext context,
org.jboss.dmr.ModelNode operation) |
protected void |
performRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
Make any runtime changes necessary to effect the changes indicated by the given
operation . |
protected void |
performRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model,
String name,
ParsedInterfaceCriteria criteria) |
protected void |
populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
Populate the given node in the persistent configuration model based on the values in the given operation.
|
protected void |
validateAndSet(AttributeDefinition definition,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode subModel) |
createResource, createResource, execute, performRuntime, performRuntime, populateModel, populateModel, recordCapabilitiesAndRequirements, requiresRuntime, requiresRuntimeVerification, rollbackRuntime, rollbackRuntime
@Deprecated public static final InterfaceAddHandler NAMED_INSTANCE
@Deprecated public static final InterfaceAddHandler SPECIFIED_INSTANCE
protected InterfaceAddHandler(boolean specified)
protected void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
AbstractAddStepHandler
OperationContext.Stage.MODEL
.
This default implementation invokes AttributeDefinition.validateAndSet(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)
on any attributes passed to the constructor.
populateModel
in class AbstractAddStepHandler
operation
- the operationmodel
- persistent configuration model node that corresponds to the address of operation
OperationFailedException
- if operation
is invalid or populating the model otherwise failsprotected void validateAndSet(AttributeDefinition definition, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode subModel) throws OperationFailedException
OperationFailedException
protected void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
AbstractAddStepHandler
operation
. Executes
after AbstractAddStepHandler.populateModel(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)
, so the given resource
parameter will reflect any changes made in that method. This method is
invoked during OperationContext.Stage.RUNTIME
. Subclasses that wish to make
changes to runtime services should override this method or the
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)
variant.
To provide compatible behavior with previous releases, this default implementation calls the deprecated
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)
method. It then does nothing with the objects referenced by the verificationHandler
and
controllers
parameters passed to that method. Subclasses that overrode that method are encouraged to
instead override this one or the AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)
variant. Subclasses that override this method should not callsuper.performRuntime(...)
.
performRuntime
in class AbstractAddStepHandler
context
- the operation contextoperation
- the operation being executedmodel
- persistent configuration model from the resource that corresponds to the address of operation
OperationFailedException
- if operation
is invalid or updating the runtime otherwise failsprotected ParsedInterfaceCriteria getCriteria(OperationContext context, org.jboss.dmr.ModelNode operation)
protected void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, String name, ParsedInterfaceCriteria criteria)
Copyright © 2023 JBoss by Red Hat. All rights reserved.