Peter Donald wrote:
> 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?


No, the releaseb requirements never left.  The main issues are with pooled
components.  They have to be managed.

Honestly, I woule like to see release moved to the Token object myself.



-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to