Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 81872 invoked from network); 24 Feb 2004 07:44:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Feb 2004 07:44:56 -0000 Received: (qmail 55200 invoked by uid 500); 24 Feb 2004 07:44:30 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 55150 invoked by uid 500); 24 Feb 2004 07:44:30 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 55133 invoked from network); 24 Feb 2004 07:44:30 -0000 Received: from unknown (HELO mail.s-und-n.de) (212.8.217.2) by daedalus.apache.org with SMTP; 24 Feb 2004 07:44:30 -0000 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id 7D47F19F573 for ; Tue, 24 Feb 2004 08:44:41 +0100 (CET) Received: from hw0386 ([10.10.2.37]) by notes.sundn.de (Lotus Domino Release 6.5) with ESMTP id 2004022408394460-43069 ; Tue, 24 Feb 2004 08:39:44 +0100 From: "Carsten Ziegeler" To: Subject: RE: [RT] Official access to the current sitemap manager Date: Tue, 24 Feb 2004 08:46:36 +0100 Organization: S&N AG MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <31DF72A980E5D511B48C000102BD8685061DB21D@calexc01.diginsite.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-Index: AcP6K7Qu0XcWbho5T+CcGZa7jsBuGQAfmwBw X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 24.02.2004 08:39:44, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 24.02.2004 08:39:45, Serialize complete at 24.02.2004 08:39:45 Message-ID: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ralph Goers wrote: > > I know this is not exactly the same, but I have a > SourceFactory that uses > CocoonComponentManager.getCurrentEnvironment() so that I can > get access to the current request via the objectModel. Since > this method seems to be closely related to > getCurrentProcessor() and getSitemapComponentManager() I just > want to make sure my code won't be affected. > Ok I have a good and a bad news :) The bad one is that you're using private API that should not be used. Starting with Cocoon 2.2 the whole class (CocoonComponentManager) is not available anymore! The good news is that you can access the current object model by making your component Contextualizable and using the ContextHelper class. Carsten