Class WriteAttributeOperationStepHandler

java.lang.Object
org.jboss.as.controller.AbstractWriteAttributeHandler<Void>
org.jboss.as.controller.ReloadRequiredWriteAttributeHandler
org.wildfly.subsystem.resource.operation.WriteAttributeOperationStepHandler
All Implemented Interfaces:
org.jboss.as.controller.OperationStepHandler

public class WriteAttributeOperationStepHandler extends org.jboss.as.controller.ReloadRequiredWriteAttributeHandler
A ReloadRequiredWriteAttributeHandler that supports resource service restarts via a ResourceOperationRuntimeHandler.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • requiresRuntime

      protected boolean requiresRuntime(org.jboss.as.controller.OperationContext context)
      Overrides:
      requiresRuntime in class org.jboss.as.controller.AbstractWriteAttributeHandler<Void>
    • recordCapabilitiesAndRequirements

      protected void recordCapabilitiesAndRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.AttributeDefinition attribute, ModelNode newValue, ModelNode oldValue)
      Overrides:
      recordCapabilitiesAndRequirements in class org.jboss.as.controller.AbstractWriteAttributeHandler<Void>
    • applyUpdateToRuntime

      protected boolean applyUpdateToRuntime(org.jboss.as.controller.OperationContext context, ModelNode operation, String attributeName, ModelNode resolvedValue, ModelNode currentValue, org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<Void> handback) throws org.jboss.as.controller.OperationFailedException
      Overrides:
      applyUpdateToRuntime in class org.jboss.as.controller.ReloadRequiredWriteAttributeHandler
      Throws:
      org.jboss.as.controller.OperationFailedException
    • revertUpdateToRuntime

      protected void revertUpdateToRuntime(org.jboss.as.controller.OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode resolvedValue, Void handback) throws org.jboss.as.controller.OperationFailedException
      Overrides:
      revertUpdateToRuntime in class org.jboss.as.controller.ReloadRequiredWriteAttributeHandler
      Throws:
      org.jboss.as.controller.OperationFailedException