Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5070

List to Set ParameterCorrectors and ParameterValidators

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Management
    • None

      The management API doesn't have a "SET" attribute/parameter type but use cases like JBEAP-19958 shows there's some need for a bit of set-like behavior.

      Idea here is the controller module could expose some static factories for ParameterCorrectors and ParameterValidators to impose set semantics on a ModelType.LIST attribute.

      A validator would be used to reject lists with duplicates.

      A corrector would be used to remove dups from a list without failing.

      For a corrector construction could perhaps be parameterized by allowing passing in the name of the attribute and a log level. Those would be used to log when the corrector removes duplicates. The corrector would definitely need to know the attribute name to log an appropriate message. The appropriate level for a message may vary based on the attribute.

              jmesnil1@redhat.com Jeff Mesnil
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: