Jonas,
Thanks for pointing that out Jonas. Actually, now that I looked at it. I
am suprised I didnt get some sort of compile error. I will revamp my
design and resubmit today. Java always amazes me the API seems so compact,
yet I always find myself going , "Oh , I didnt know you could do 
that!!!" or "I didnt know that was there". The Java API is amazing.


Jeff
[EMAIL PROTECTED]

On Tue, 25 Jan 2000, Jonas Maurus wrote:

> Good idea, basically....
> 
> But actually ResourceBundle already exists in java.util and is the Baseclass for all 
>localizationservices in
> Java. So it would be quite a good idea to choose another name.
> 
> -Jonas Maurus
> 
> Jeff Prickett wrote:
> 
> > Hello All
> > I have coded up an ErrorResources Bundle. Sorry for the delay. I have been
> > busy with customers and making a living :)... Well I hope that this is a
> > more elegant solution than my inline error messages were.
> >
> > I have created an ErrorResources.java file which is inherited from a new
> > file called ResourceBundle.java. ResourceBundle.java was basically derived
> > from TurbineResources.java. I took the non-static methods and moved them
> > into ResourceBundle.java. ErrorResources and TurbineResources inherit from
> > ResourceBundle.
> >
> > I basically created a default error message bundle which is populated from
> > the static{} method of the ErrorResources class. I will continue to add
> > error messages as time permits.
> >
> > It is possible to use property files to configure the error messages.
> > I am strongly -1 on this however, because it is another configuration
> > problem that can occur. In the case where multiple configuration problems
> > are encountered and Error Resource property file is not configured.
> > Debugging could be a nightmare. Just imagine untarring Turbine and getting
> > zero error messages.
> >
> > I believe even if we do not go with property file error messages that the
> > isolation of error messages to one file is a great thing. I would prefer a
> > system where we just add error messages to the default Error Resource
> > Bundle in the static method. I know that this requires a recompile to
> > change error messages, but it only requires one file to be recompiled and
> > the isolation of error messages makes the code more readable and
> > manageable.
> >
> > Questions Comments Discussion
> > I hope these solutions are better!!!!
> >
> > Jeff
> >
> 
> 
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to