Sylvain Wallez wrote:
Felix Röthenbacher wrote:
The best is if you have an Avalon context at hand (in an Avalon
component, implement the Contextualizable interface).
Is there such a component I can use with a method getContext() or do I
have to create a new one for this purpose?
Where do you get your ServiceManager from? Can't you get the Avalon
context from that same object?
The ServiceManager comes from an initial call of
Serviceable.service(). The problem is, that component access is cached
afterwards. What I did now, is to implement a ContextUtility component
which implements the Contextualizeable interface and which I use
to get the same objects available also by the ContextHelper
class.
- Felix
Sylvain
--
Felix Röthenbacher [EMAIL PROTECTED]
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]