public class PathAddHandler extends AbstractAddStepHandler implements DescriptionProvider
Modifier and Type | Field and Description |
---|---|
static PathAddHandler |
NAMED_INSTANCE |
static String |
OPERATION_NAME |
static PathAddHandler |
SPECIFIED_INSTANCE |
Modifier | Constructor and Description |
---|---|
protected |
PathAddHandler(boolean specified)
Create the PathAddHandler
|
Modifier and Type | Method and Description |
---|---|
static org.jboss.dmr.ModelNode |
getAddPathOperation(org.jboss.dmr.ModelNode address,
org.jboss.dmr.ModelNode path,
org.jboss.dmr.ModelNode relativeTo) |
org.jboss.dmr.ModelNode |
getModelDescription(Locale locale)
Gets the descriptive information (human-friendly description, list of attributes,
list of children) describing a single model node or operation.
|
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.
|
execute, performRuntime, populateModel, populateModel, requiresRuntime, requiresRuntimeVerification, rollbackRuntime
public static final String OPERATION_NAME
public static final PathAddHandler NAMED_INSTANCE
public static final PathAddHandler SPECIFIED_INSTANCE
protected PathAddHandler(boolean specified)
public static org.jboss.dmr.ModelNode getAddPathOperation(org.jboss.dmr.ModelNode address, org.jboss.dmr.ModelNode path, org.jboss.dmr.ModelNode relativeTo)
protected void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
AbstractAddStepHandler
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 failspublic org.jboss.dmr.ModelNode getModelDescription(Locale locale)
DescriptionProvider
The implementation must assume that the caller intends to modify the
returned ModelNode
so it should not hand out a reference to any internal data structures.
getModelDescription
in interface DescriptionProvider
locale
- the locale to use to generate any localized text used in the description.
May be null
, in which case Locale.getDefault()
should be usedModelNode
describing the model node's structureCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.