Return-Path: Delivered-To: apmail-jakarta-avalon-dev-archive@apache.org Received: (qmail 3667 invoked from network); 14 Feb 2002 04:10:54 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Feb 2002 04:10:54 -0000 Received: (qmail 3646 invoked by uid 97); 14 Feb 2002 04:11:02 -0000 Delivered-To: qmlist-jakarta-archive-avalon-dev@jakarta.apache.org Received: (qmail 3625 invoked by uid 97); 14 Feb 2002 04:11:02 -0000 Mailing-List: contact avalon-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-dev@jakarta.apache.org Received: (qmail 3614 invoked from network); 14 Feb 2002 04:11:01 -0000 Message-ID: <3C6B3950.9060009@users.sf.net> Date: Thu, 14 Feb 2002 06:13:04 +0200 From: Antti Koivunen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en, fi, sv, fr, de, ja MIME-Version: 1.0 To: Avalon Developers List Subject: Re: Resolver package--Please post your thoughts References: 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: daedalus.apache.org 1.6.2 0/1000/N Paulo, I see your point, using Object keys would naturally allow maximum flexibility. However, the following operation is well defined: MyComponent mc = (MyComponent) m.lookup("com.domain.MyComponent"); Custom Object keys would be perfect for one application, but how about when we start switching container and component implementations? (: A ;) Paulo Gaspar wrote: > Antti, > > Building a String key can get REALLY complicated. I am not sure if > it really is a simplification. > > OTOH, if you know how to implement equals() and hashCode() methods, > you can build efficient and non-coliding complex keys with ease... > ...but then the key parameter should just be a > java.lang.Object > > > Have fun, > Paulo Gaspar > -- To unsubscribe, e-mail: For additional commands, e-mail: