Interface InfiniteOrPositiveValidators
-
public interface InfiniteOrPositiveValidatorsValidates a given parameter is a legal value (-1 or > 0) where -1 means "forever". The validation is done in 2 steps: 1. a ParameterCorrector will correct any negative value to -1 2. a ParameterValidator will check that negative values and > 0 are valid. Note that the ParameterValidator will validate any negative value until WFCORE-3651 is fixed to preserve backwards compatibility (as the parameter correction is not apply before the validator is called during XML parsing).- Author:
- Jeff Mesnil (c) 2012 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.as.controller.operations.validation.ModelTypeValidatorINT_INSTANCEstatic org.jboss.as.controller.operations.validation.ModelTypeValidatorLONG_INSTANCEstatic org.jboss.as.controller.ParameterCorrectorNEGATIVE_VALUE_CORRECTORCorrect any negative value to use -1 (interpreted by Artemis as infinite).
-
-
-
Field Detail
-
LONG_INSTANCE
static final org.jboss.as.controller.operations.validation.ModelTypeValidator LONG_INSTANCE
-
INT_INSTANCE
static final org.jboss.as.controller.operations.validation.ModelTypeValidator INT_INSTANCE
-
NEGATIVE_VALUE_CORRECTOR
static final org.jboss.as.controller.ParameterCorrector NEGATIVE_VALUE_CORRECTOR
Correct any negative value to use -1 (interpreted by Artemis as infinite).
-
-