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!
Hah, just testing to see if you're watching this list ;-) > The best is if you have an Avalon context at hand (in an Avalon > component, implement the Contextualizable interface). > > You can then get the object model in a future-proof way using > ContextHelper.getObjectModel(context). Now that is kinda handy. Has just made a component of mine 2.1 _and_ 2.2 compatible. Thanks. Regards, Upayavira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
