Package org.jboss.as.controller
Class PropagatingCorrector
java.lang.Object
org.jboss.as.controller.PropagatingCorrector
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.dmr.ModelNodecorrect(org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode currentValue) Adjusts the value to be set on the attribute.
-
Field Details
-
INSTANCE
-
-
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:ParameterCorrectorAdjusts the value to be set on the attribute.- Specified by:
correctin interfaceParameterCorrector- Parameters:
newValue- the new value to be setcurrentValue- the current value of the attribute- Returns:
- the value that actually should be set
-