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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
