--- Ara Abrahamian <[EMAIL PROTECTED]> wrote:
> > Of course I mean module.
> > It just came to my mind - xdoclet uses
> externalizer
> > to generate message bundles for modules. So it
> looks
> > a bit egoistik, to not to provide this service to
> > outside world -> but there are no xtags xml for it
> ->
> > No formalisation of tags -> no GUI for it.
> 
> +1, but don't ask me to do it :-) Should be very
> easy though....
on the way :)
> > I think it's worth extending. Maybe add generation
> > of bundles per class, where resource bundles live
> > in the same package + generate accessor class
> which
> > will wrap them appropriately...
> 
> +1, but don't ask me to do it :-)

OK, I think about this pattern:

I have a class which needs messages. I specify
messages on class level. Maybe with
language/territory/variant settings - but not
required. ( we do not like to 
make technical writers/translators unemployed, and do
not like them to botch in the our high-quality code
:))

2 Generation modi:  
1. Generate single big property file, prefix 
with FQCN
2. generate per class - do not prefix

Convenience classes to get messages:
For big one not necessary - it can be done once 
and without xdoclet

For per class  generation:
Generate "accesor" class , which provides static
methods ( and is singleton ), fetches correct
localized 
resources and does message format or whatever we like.

regards,

=====
Konstantin Priblouda ( ko5tik )    Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to