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

Reply via email to