Interface InfiniteOrPositiveValidators


public interface InfiniteOrPositiveValidators
Validates 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 final org.jboss.as.controller.operations.validation.ModelTypeValidator
     
    static final org.jboss.as.controller.operations.validation.ModelTypeValidator
     
    static final org.jboss.as.controller.ParameterCorrector
    Correct any negative value to use -1 (interpreted by Artemis as infinite).
  • Field Details

    • 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).