public class AddAliasCommand extends Object implements OperationStepHandler
Modifier and Type | Field and Description |
---|---|
static AddAliasCommand |
INSTANCE |
Constructor and Description |
---|
AddAliasCommand() |
Modifier and Type | Method and Description |
---|---|
void |
execute(OperationContext context,
org.jboss.dmr.ModelNode operation)
An attribute write handler which performs special processing for ALIAS attributes.
|
protected boolean |
requiresRuntime(OperationContext context)
Gets whether a
OperationContext.Stage#RUNTIME handler should be added. |
public static final AddAliasCommand INSTANCE
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
execute
in interface OperationStepHandler
context
- the operation contextoperation
- the operation being executedOperationFailedException
protected boolean requiresRuntime(OperationContext context)
OperationContext.Stage#RUNTIME
handler should be added. This default implementation
returns true
if the OperationContext.getProcessType()
process type} is
as sever and context.isBooting()
returns false
.context
- operation contexttrue
if a runtime stage handler should be added; false
otherwise.Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.