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

Programmatic Configuration of XWork

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 1.0.1, 1.1
    • 1.2
    • Configuration
    • None

    Description

      Sometimes it's nice to be able to configure XWork programmatically, without having to put an xwork.xml file on the classpath (for example in unit tests) This can already be achieved without having to jump through hoops, but changing the visibility of "runtimeConfiguration" in the DefaultConfiguration class from private to protected would be useful, reducing setup to:

      Configuration config = new DefaultConfiguration() {
      public synchronized void reload() throws ConfigurationException

      { runtimeConfiguration = buildRuntimeConfiguration(); }

      };

      and then adding the various packages.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              roller_sms Simon Stewart
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: