@Override protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Boolean handback) throws OperationFailedException { if (handback != null && handback.booleanValue()) { final String bindingName = context.getCurrentAddressValue(); final ModelNode bindingModel = context.readResource(PathAddress.EMPTY_ADDRESS).getModel(); // Back to the old service revertBindingReinstall(context, bindingName, bindingModel, attributeName, valueToRestore); } else { context.revertReloadRequired(); } }
@Override protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Boolean handback) throws OperationFailedException { if (handback != null && handback.booleanValue()) { final String bindingName = context.getCurrentAddressValue(); final ModelNode bindingModel = context.readResource(PathAddress.EMPTY_ADDRESS).getModel(); // Back to the old service revertBindingReinstall(context, bindingName, bindingModel, attributeName, valueToRestore); } else { context.revertReloadRequired(); } }
@Override protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Boolean handback) throws OperationFailedException { if (handback != null && handback.booleanValue()) { final String bindingName = PathAddress.pathAddress(operation.get(OP_ADDR)).getLastElement().getValue(); final ModelNode bindingModel = context.readResource(PathAddress.EMPTY_ADDRESS).getModel(); // Back to the old service revertBindingReinstall(context, bindingName, bindingModel, attributeName, valueToRestore); } else { context.revertReloadRequired(); } }
@Override protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Boolean handback) throws OperationFailedException { if (handback != null && handback.booleanValue()) { final String bindingName = PathAddress.pathAddress(operation.get(OP_ADDR)).getLastElement().getValue(); final ModelNode bindingModel = context.readResource(PathAddress.EMPTY_ADDRESS).getModel(); // Back to the old service revertBindingReinstall(context, bindingName, bindingModel, attributeName, valueToRestore); } else { context.revertReloadRequired(); } }