> > Ok, thanks for the hints. Now, how should I access the same
> > property from a class that is not the service itself? For example
> > from a class that is a utility for the service?
>
> You have to get hold of the service from the service broker and
> than get the configuration value. Use the code in the static helper
> of any of the services to see how to do this. Once you have the
> service than you use getConfiguration() again.
>
> Either way you have to reference a service in your utility code:
> TurbineResources, or the ServiceBroker to get hold of the singleton
> instance of the service so that you can get the value from there.
Ok, what I did was to add a static getConfiguration() method to each
of my service facade classes. That seems to work fine. However, to
my surprise, Configuration is really
org.apache.velocity.runtime.configuration.Configuration
Why velocity? And what's more, this class is deprecated (but used
throughout Turbine's own services). Should I be using something else?
I believe I should, if not for anything else, because I fail to see
why a service should be coupled to Velocity. Besides, if the class
is deprecated, it surely was replaced with something else, right?
If yes, what exactly should I be using?
By the way, I have come to understand a little more about your
pain in decoupling things for Turbine 3.0... Thanks,
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]