Uploaded image for project: 'XWork'
  1. XWork
  2. XW-1028

reloading of configuration files on change

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta1
    • 1.0-beta1
    • None
    • None
    • jre 1.4.1 on win2k

    Description

      It'd be very nice to have both xwork.xml and validation xml files reloaded upon change. This would depend on some attribute specified in xwork.xml. For example, if the <reload/> element existed in the xwork.xml file when it is loaded, then on every getConfiguration() call, the modification time of the xwork.xml file would be checked and the file would be reloaded if it was newer.

      I realize this would slow things down during runtime, but it would speed up development quite a bit.

      Looking through the code, it looks like I could do it myself by calling reload on Configuration if I detect a file change. However, their doesn't seem to be an equivalent method for validators.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bnahas Brian Nahas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: