Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-237

Abstract Validation framework to Actions framework.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Abandoned
    • 1.4.0 Release
    • None
    • Framework
    • None
    • All

    Description

      Apache Commons validator can be ABSTRACTED to a common framework called ACTIONS framework.

      The Actions framework will act in similar manner as validation framework but will be independent of the way in which actions are execute on the value.

      Abstraction points.
      1.Validation can be treated as any action
      2.The value to be validated is treated as source value
      3.The return value true/false can be treated as a target value
      4.Source Value --pass to-- > list of actions to be executed ---results in--> Target Value

      We have already done this in our enterprise product, we use apache validation framework even for transforming values in our custom ETL framework.

      Once the apache validator is abstracted as actions framework one can use the same to not only validate the source value but to transform the value or even in describing and modifying styles of controls in UI and much more. The advantage here is we use the same digester , loading of elements, extending forms and stuff, this code remains common.

      Attachments

        1. test.actionframework.zip
          4.55 MB
          Bhupesh Naik

        Activity

          People

            Unassigned Unassigned
            bhupeshnaik Bhupesh Naik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: