I committed my changes, rv#728469. To enable auto reloading set: <constant name="struts.devMode" value="true"/> <constant name="struts.convention.classes.reload" value="true" />
@Blake: take a look at the changes, I think you might be able to do the same thing with CodeBehind, also the ClassLoader classes that I took from JCI are self contained (after a few mods), so you can lift them also. musachy On Sun, Dec 21, 2008 at 11:42 AM, Blake Byrnes <blakebyr...@gmail.com> wrote: > Cool stuff. I've been playing with the Struts 2 javarebel plugin to try to > get it to load individual configuration changes using codebehind. It's > nearly impossible to weave into the current setup, so you have to just > reload the whole configuration. > The framework will load anything registered as a PackageProvider, but I > couldn't get it to load Configuration Providers. > > On Sun, Dec 21, 2008 at 11:34 AM, Musachy Barroso <musa...@gmail.com> wrote: > >> just for reference, the only way I found to register a >> ConfigurationProvider in a plugin was registering a Dispatcher >> Listener, and then adding the ConfigurationProvider to the >> Configuration manager instace in the dispatcher, not very elegant, but >> that's all I got. As a side note, I used this plus a ClassLoader that >> I borrowed from Apache JCI, and now the convention plugin will have a >> setting: >> >> struts.convention.classes.reload >> >> which, when set to true, will reload the configuration when a class >> that has actions change. Like xwork does with the xmls, so the >> container doesn't need to be restarted when in devMode. >> >> musachy >> >> On Wed, Dec 10, 2008 at 9:44 AM, Musachy Barroso <musa...@gmail.com> >> wrote: >> > Is there anyway to register a new ConfigurationProvider? I thought >> > that just defining a bean with that type, it would get picked by the >> > framework and registered. It seems like ConfigurationProviders get >> > added to the ConfigurationManager "by hand" by Dispatcher. I want to >> > watch class files from the convention plugin, and reload the >> > configuration automatically when they change, but I can't do this, >> > without registering a ConfigurationProvider. >> > >> > regards >> > musachy >> > -- >> > "Hey you! Would you help me to carry the stone?" Pink Floyd >> > >> >> >> >> -- >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org >> For additional commands, e-mail: dev-h...@struts.apache.org >> >> > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org