public class SecurityRoleReadAttributeHandler extends AbstractRuntimeOnlyHandler
Modifier and Type | Field and Description |
---|---|
static SecurityRoleReadAttributeHandler |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
executeRuntimeStep(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step in
OperationContext.Stage.RUNTIME . |
protected boolean |
resourceMustExist(OperationContext context,
org.jboss.dmr.ModelNode operation)
By default the handler will check whether the resource exist before calling @{link #executeRuntimeStep(OperationContext, ModelNode)}.
|
execute, waitFor
public static final SecurityRoleReadAttributeHandler INSTANCE
protected boolean resourceMustExist(OperationContext context, org.jboss.dmr.ModelNode operation)
AbstractRuntimeOnlyHandler
resourceMustExist
in class AbstractRuntimeOnlyHandler
context
- the operation contextoperation
- the operation being executedpublic void executeRuntimeStep(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
AbstractRuntimeOnlyHandler
OperationContext.Stage.RUNTIME
.
If the operation fails, context.getFailureDescroption()
must be called, or OperationFailedException
must be thrown, before calling one of the
context.completeStep variants
.
If the operation succeeded, context.getResult()
should
be called and the result populated with the outcome, after which one of the
context.completeStep variants
must be called.executeRuntimeStep
in class AbstractRuntimeOnlyHandler
context
- the operation contextoperation
- the operation being executedOperationFailedException
- if the operation failed before calling context.completeStep()
Copyright © 2015 JBoss by Red Hat. All rights reserved.