I read the code more carefully after sending the post and saw you call
init() in setPropertyFileName().

But correct me if I'm wrong...if we don't use TurbineResources within the
service framework there is no singleton that ensures the static instance of
GenericResources won't get garbage collected.  Also, calling init() every
time via setPropertyFileName() results in reloading the file every time
Turbine is called.

> They get instantiated if you call setPropertyFileName(). ;-)
>
> I did test this code from a Main() class and it worked just fine...if you
> read the javadoc I make explicit statements that say that you need to call
> setPropertyFileName() before calling getString().
>
> -jon
>
> > Jon,
> >
> > You made changes to use the new resources stuff with code like
> > TurbineResources.getString("name");
> >
> > These static get* methods never instantiate the GenerResources
> so we'll get
> > a NPE.  We need to use TurbineResources within the service framework or
> > provide a convenient wrapper class like Localization.
> >
> > Frank
>
>
> ------------------------------------------------------------
> 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