avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: [VOTE] RE: ComponentManager interface
Date Wed, 13 Feb 2002 19:57:22 GMT
On Thu, 14 Feb 2002 03:16, Berin Loritsch wrote:
> 1) The ServiceManager stays as is with the change that the key lookup
>     is an Object instead of String (String is common case, but allows
>     for Query object enhancement later).
> 2) The ServiceManager has two methods: one String, and one Query object
> Due to all the feedback, the Query object would be simplified to one
> key and attributes.

either works for me.

> 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.



 I just got lost in thought... It was unfamiliar territory.

To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

View raw message