You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Berin Loritsch <bl...@apache.org> on 2002/06/06 22:42:02 UTC

RE: [Design] ContainerManager is under fire--let's find the bestresolution

> From: Leo Simons [mailto:leosimons@apache.org] 
> one more thing:
> 
> Why is a role a string?
> -----------------------
> Because strings are easy for humans.
> 
> consider:
> 
> interface ComponentManager
> {
>     Object lookup(Role role);
>     boolean exists(role role);
> }
> 
> or even:
> 
> interface ComponentManager
> {
>     Object lookup(Object role);
>     boolean exists(Object role);
> }
> 
> and what we have is basically a read-only HashMap with a 
> specific contract and no unneccessary "convenience" methods.

Yes, but sometimes we need the hint.  Don't remove that ability.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>