public class ProfileAddHandler extends AbstractAddStepHandler implements DescriptionProvider
Modifier and Type | Field and Description |
---|---|
static ProfileAddHandler |
INSTANCE |
Constructor and Description |
---|
ProfileAddHandler() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected boolean |
requiresRuntime(OperationContext context)
|
execute, performRuntime, populateModel, populateModel, requiresRuntimeVerification, rollbackRuntime
public static final ProfileAddHandler INSTANCE
protected void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model)
AbstractAddStepHandler
populateModel
in class AbstractAddStepHandler
operation
- the operationmodel
- persistent configuration model node that corresponds to the address of operation
protected boolean requiresRuntime(OperationContext context)
AbstractAddStepHandler
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)
}
should be called. This default implementation always returns true
. Subclasses that perform no runtime
update could override and return false
.requiresRuntime
in class AbstractAddStepHandler
context
- operation contexttrue
if performRuntime
should be invoked; false
otherwise.public 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 © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.