Package org.jboss.as.controller
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 Summary
Fields Modifier and Type Field Description static PropagatingCorrector
INSTANCE
-
Constructor Summary
Constructors Constructor Description PropagatingCorrector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNode
correct(org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode currentValue)
Adjusts the value to be set on the attribute.
-
-
-
Field Detail
-
INSTANCE
public static final PropagatingCorrector INSTANCE
-
-
Method Detail
-
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 interfaceParameterCorrector
- Parameters:
newValue
- the new value to be setcurrentValue
- the current value of the attribute- Returns:
- the value that actually should be set
-
-