On Thu, 14 Feb 2002 12:10, Paulo Gaspar wrote:
> So, if for services you would always have (although I still do
> not like these keys):
>
>   interface ServiceManager
>   {
>        Object lookup( String role );
>        Object lookup( String role, Parameters attributes );
>        void release( Object component );
>   }
>
> for a ComponentManager you could have:
>
>   interface ComponentManager
>   {
>        Object lookup( Object token, String role );
>        Object lookup( Object token, String role, Parameters attributes );
>        void release( Object component );
>        void releaseAll( Object token );
>   }

I like that distinction except I would remove ServiceManager.release() as it 
is no longer really needed?

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

Reply via email to