public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { super.execute(context, operation); if (requiresRuntime(context)) { context.addStep(new OperationStepHandler() { public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { performRuntime(context, operation, operation); context.completeStep(new OperationContext.RollbackHandler() { @Override public void handleRollback(OperationContext context, ModelNode operation) { rollbackRuntime(context, operation, operation); } }); } }, OperationContext.Stage.RUNTIME); } }
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { super.execute(context, operation); if (requiresRuntime(context)) { context.addStep(new OperationStepHandler() { public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { performRuntime(context, operation, operation); context.completeStep(new OperationContext.RollbackHandler() { @Override public void handleRollback(OperationContext context, ModelNode operation) { rollbackRuntime(context, operation, operation); } }); } }, OperationContext.Stage.RUNTIME); } }
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { super.execute(context, operation); if (requiresRuntime(context)) { context.addStep(new OperationStepHandler() { public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { performRuntime(context, operation, operation); context.completeStep(new OperationContext.RollbackHandler() { @Override public void handleRollback(OperationContext context, ModelNode operation) { rollbackRuntime(context, operation, operation); } }); } }, OperationContext.Stage.RUNTIME); } }