You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Neeme Praks <ne...@apache.org> on 2001/09/30 13:02:40 UTC
RE: i18n stuff updated
Thanks for checking this. Now I commited a new version of XMLResourceBundle
that implements also Component.
(Better late than never :-) )
Rgds,
Neeme
> -----Original Message-----
> From: Marcus Crafter [mailto:crafterm@fztig938.bank.dresdner.net]
> Sent: Friday, June 29, 2001 9:00 AM
> To: avalon-dev@jakarta.apache.org
> Subject: Re: i18n stuff updated
>
>
> Hi Neeme!
>
> Great work!
>
> > Neeme Praks wrote:
> >
> > I made some major revisions to the i18n stuff (XMLResourceBundle):
> > * better integration with Avalon (logging, component and other
> > * interfaces implemented)
> > * XMLResourceBundle now extends
> java.util.ResourceBundle. However, if
> > * you want it to work as a "drop-in" replacement, then
> you need to turn on the "pre-loading" of all resources.
> > * API changes, the method for getting a bundle is now more
> > * "Avalon-like", select().
> > * all methods are now with JavaDoc.
> > * ResourceCheck moved to i18n.util package, as it an utility.
> >
> > TODO:
> > * I haven't tested if it actually still works, I guess
> I need to write
> > * some small avalon app for that :-)
>
> I've just had a look at the updated code. Looks good, however I
> receive a ClassCastException from within the
> XMLResourceBundleFactory
> updateCache method:
>
> DEBUG 943 [log ] (main): Updating cache: ./messages.xml
> ERROR 945 [log ] (main): Error while loading resource:
> messages, locale en, bundleName ./messages_en.xml
> java.lang.ClassCastException: XMLResourceBundle
> at
> XMLResourceBundleFactory.updateCache(XMLResourceBundleFactory.java:412)
> at
> XMLResourceBundleFactory._select(XMLResourceBundleFactory.java:253)
> at
> XMLResourceBundleFactory.selectParent(XMLResourceBundleFactory.java:172)
> at
> XMLResourceBundleFactory.selectParent(XMLResourceBundleFactory.java:1
> ...<snip>...
>
> Seems like it's trying to cast an XMLResourceBundle to an Avalon
> Component - is this what you intended ? Should XMLResourceBundle
> implement Component ?
>
> Cheers,
>
> Marcus
>
> --
> .....
> ,,$$$$$$$$$, Marcus Crafter
> ;$' '$$$$: Computer Systems Engineer
> $: $$$$: Open Software Associates GmbH
> $ o_)$$$: 82-84 Mainzer Landstrasse
> ;$, _/\ &&:' 60327 Frankfurt Germany
> ' /( &&&
> \_&&&&' Email : Marcus.Crafter@osa.de
> &&&&. Business Hours : +49 69 9757 200
> &&&&&&&: After Hours : +49 69 49086750
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org