avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antti Koivunen <anryo...@users.sourceforge.net>
Subject Re: [VOTE] RE: ComponentManager interface
Date Thu, 14 Feb 2002 17:08:33 GMT
This way the ServiceManager implementation could also be something 
simple, such as:

   void addService( String role, Object service );
   void addService( String role, Map hintToService );
   void addService( String role, Map hintToService, Object default );

This would actually be both flexible and efficient.

(: A ;)

Antti Koivunen wrote:
> Sure, as Map provides maximum flexibility. I also agree on the 
> simplicity point, but I want to get all ideas in the open, as now is the 
> right time for discussion. The point of the previous suggestion was ease 
> of use and performance. I guess we should also consider this:
>   Object lookup( String role, Object policy );
>   Object hasService( String role, Object policy );
> It would give us the same flexibility, but allow potentially more 
> efficient implementations. Too much of a generalization?
> (: A ;)

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