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.
--
Cheers,
Pete
------------------------------------------------------------
I just got lost in thought... It was unfamiliar territory.
------------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>