Re: [picocontainer-dev] AbstractI18NLoggingComponentMonitor
Mauro Talevi <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Michael Rimov wrote:
> Hi guys,
>
> How would you guys feel about setting up a resource bundle for the
> ComponentMonitor and internationalizing the i18n messages?
>
> It isn't too tough for me to do. (At least an English "base message"), and it
> would give us the fairly unique feature of having ComponentMonitor messages
> being logged in native languages.
>
> Just a rough thought... I can provide the base class, and en_US message bundles.
> Perhaps we'd just leave the other translations up to people as things roll
> along?
>
I would think a better approach would be to use composition over
inheritance. So AbstractLoggingComponentMonitor could be injected with
a message resource which defaults to an instance that uses default
strings for messages.
The use can then decide to inject a locale-specific instance.
Like?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email