Class PropagatingCorrector

java.lang.Object
org.jboss.as.controller.PropagatingCorrector
All Implemented Interfaces:
ParameterCorrector

public class PropagatingCorrector extends Object implements ParameterCorrector
This implementation propagates properties present in the current attribute value but missing from the new value. Although, if the new value is of type UNDEFINED, the value will remain UNDEFINED.
Author:
Alexey Loubyansky
  • Field Details

  • Constructor Details

    • PropagatingCorrector

      public PropagatingCorrector()
  • Method Details

    • correct

      public org.jboss.dmr.ModelNode correct(org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode currentValue)
      Description copied from interface: ParameterCorrector
      Adjusts the value to be set on the attribute.
      Specified by:
      correct in interface ParameterCorrector
      Parameters:
      newValue - the new value to be set
      currentValue - the current value of the attribute
      Returns:
      the value that actually should be set