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, rollbackRuntimepublic static final ProfileAddHandler INSTANCE
protected void populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
AbstractAddStepHandlerpopulateModel in class AbstractAddStepHandleroperation - the operationmodel - persistent configuration model node that corresponds to the address of operationprotected boolean requiresRuntime(OperationContext context)
AbstractAddStepHandlerAbstractAddStepHandler.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 AbstractAddStepHandlercontext - 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 DescriptionProviderlocale - 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.