Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 34812 invoked from network); 9 Nov 2003 23:01:50 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Nov 2003 23:01:50 -0000 Received: (qmail 98638 invoked by uid 500); 9 Nov 2003 23:01:10 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 98544 invoked by uid 500); 9 Nov 2003 23:01:10 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 98431 invoked from network); 9 Nov 2003 23:01:09 -0000 Received: from unknown (HELO sati.virbus.de) (145.253.246.81) by daedalus.apache.org with SMTP; 9 Nov 2003 23:01:09 -0000 Received: from sati.virbus.de (localhost [127.0.0.1]) by localhost (SMTP Server) with ESMTP id 4B610166A94 for ; Mon, 10 Nov 2003 00:01:15 +0100 (MET) Received: from virbus.de (Bd98a.b.pppool.de [213.7.217.138]) by sati.virbus.de (SMTP Server) with ESMTP id BFE56166A93 for ; Mon, 10 Nov 2003 00:01:14 +0100 (MET) Message-ID: <3FAEC69D.4040005@virbus.de> Date: Sun, 09 Nov 2003 23:58:37 +0100 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: How to use the ServiceSelector? References: <000501c3a69d$1f932880$0a00a8c0@obelix> In-Reply-To: <000501c3a69d$1f932880$0a00a8c0@obelix> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 If you get the Selector from a ServiceManager you always get a ServiceSelector. If the real type of this Selector is a ComponentSelector as the ExcaliburCS, you get a WrappedServiceSelector. But this happens transparent to you, you simply do (ServiceSelector)this.manager.lookup(selectorKey) If the Selector is later on re-implemented to a real ServiceSelector, you code will still work. Regards, Joerg On 09.11.2003 09:40, Stephan Coboos wrote: > Hello, > > in the file cocoon.roles I can see that many components which needs a > selector using the ExcaliburComponentSelector. But this selector is > deprecated, isn't it? So I want to use the ServiceSelector for my > components. Is there a default implementation of this selector avaiable or > any examples how to use it? > > PS: In the cocoon docs I had seen only a note that the ServiceSelector > should be used instead of the ComponentSelector, nothing more. > > Thank you. > > Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org