Sylvain Wallez wrote:
Upayavira wrote:
Felix Röthenbacher wrote:
<snip/>
Cocoon 2.1.x, Java
Map om = CocoonComponentManager.getCurrentEnvironment().getObjectModel();
Eek!
:-)
Althought this works, this is an internal class that no more exists
in the 2.2 branch!
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?
You can then get the object model in a future-proof way using
ContextHelper.getObjectModel(context).
Thanks for the hint.
- 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]