Return-Path: Delivered-To: apmail-jakarta-avalon-dev-archive@apache.org Received: (qmail 59691 invoked from network); 13 Feb 2002 20:21:11 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Feb 2002 20:21:11 -0000 Received: (qmail 4887 invoked by uid 97); 13 Feb 2002 20:21:11 -0000 Delivered-To: qmlist-jakarta-archive-avalon-dev@jakarta.apache.org Received: (qmail 4871 invoked by uid 97); 13 Feb 2002 20:21:11 -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 4860 invoked from network); 13 Feb 2002 20:21:11 -0000 From: "Stephen McConnell" To: "Avalon Developers List" Subject: RE: [VOTE] RE: ComponentManager interface Date: Wed, 13 Feb 2002 21:22:12 +0100 Message-ID: <000001c1b4cc$1ef6bfa0$0a01a8c0@osm.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <200202132001.g1DK16R13134@mail004.syd.optusnet.com.au> X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > Another alternative to the whole explicit Query object is the following: > > > > interface ServiceManager > > { > > Object lookup( String role ); > > Object lookup( String role, Parameters attributes ); > > void release( Object component ); > > } > > I would prefer not to couple the service package and the > parameters pacakge. > So I guess I would prefer a Query object or if thats not a go > then use a Map > object rather than a Parameters object. Pete: I understand and support the concern re. mixing in the Parameter object. Personally I would prefer Map over Query. Here is my understanding of what the interface would look like (all method included) based on quasi "consensus" at this stage + your suggested replacement of Parameters with Map. interface ServiceManager { Object lookup( final String role ); Object lookup( final String role, final Map attributes ); boolean hasObject( final String role ); void release( Object object ); } Is this ok with everyone? Steve. -- To unsubscribe, e-mail: For additional commands, e-mail: