Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4483

Add Listener for Configuration events

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.20
    • 6.1.0
    • XML Configuration
    • None

    Description

      We have some rules that we enforce on our struts action and package configurations. We currently enforce these by validating the configuration in non-production environments in a DispatcherListener.dispatcherInitialized() implementation.

      That works great at startup but, in development, I dynamically reload the configuration (say to fix an action definition), DispatcherListener.dispatcherInitialized() is not invoked, and so the configuration I reloaded is not revalidated.

      It would be great if struts2 supported a ConfigurationListener interface that could listen for at least init complete, and reload complete events. I could see a lot of practical uses for that. Thanks!

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            perfnorm Jasper Rosenberg

            Dates

              Created:
              Updated:

              Slack

                Issue deployment