struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasper Rosenberg (JIRA)" <>
Subject [jira] [Created] (WW-4483) Add Listener for Configuration events
Date Sun, 29 Mar 2015 12:10:52 GMT
Jasper Rosenberg created WW-4483:

             Summary: Add Listener for Configuration events
                 Key: WW-4483
             Project: Struts 2
          Issue Type: New Feature
          Components: XML Configuration
    Affects Versions: 2.3.20
            Reporter: Jasper Rosenberg
            Priority: Minor

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()

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!

This message was sent by Atlassian JIRA

View raw message