Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 49712 invoked from network); 12 Jul 2004 13:52:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Jul 2004 13:52:48 -0000 Received: (qmail 9041 invoked by uid 500); 12 Jul 2004 13:52:43 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 8987 invoked by uid 500); 12 Jul 2004 13:52:43 -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 8972 invoked by uid 99); 12 Jul 2004 13:52:42 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [80.91.224.249] (HELO main.gmane.org) (80.91.224.249) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 12 Jul 2004 06:52:40 -0700 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bk1ES-0005eb-00 for ; Mon, 12 Jul 2004 15:52:38 +0200 Received: from 212.222.194.100 ([212.222.194.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Jul 2004 15:52:36 +0200 Received: from jh by 212.222.194.100 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Jul 2004 15:52:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org From: Jorg Heymans Subject: getting at the defaultsmodule in 2.1.x Date: Mon, 12 Jul 2004 15:50:29 +0200 Lines: 28 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 212.222.194.100 User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I am currently porting my app from 2.0.x to 2.1.x. In components i used to do ComponentSelector selector = (ComponentSelector)serviceManager.lookup( InputModule.ROLE + "Selector"); InputModule inputModule = (InputModule)selector.select(module); to retrieve values set in the defaultsmetamodule. Now in 2.1.x this does not work anymore, more specifically the componentselector is not returned anymore by the servicemanager. After a bit of introspection i changed it to WrapperServiceSelector selector = (WrapperServiceSelector) serviceManager.lookup( InputModule.ROLE + "Selector"); InputModule inputModule = (InputModule) selector.select(module); Is this the standard way ? I am getting the desired results, just wondering if i'm not relying anything i'm not supposed to rely on :) Kind Regards Jorg Heymans