avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey M Vladimirov <...@land.ru>
Subject Lookup the collection (I had lost thread)
Date Tue, 03 Aug 2004 17:46:24 GMT
Good time, devs.

Sorry for this message, but I will try to retry or rewrite something.

Carsten Ziegeler <cziegeler@s-und-n.de>  (S&N AG):
>>(List)ServiceManager.lookupAll(Filter.class).iterator;
> Hmm, yes, although it might be that this is against one of the
> basic design principles of Avalon: security.

For this reason I provide solution: Collectable interface.

But answers of Niclas Hedhman and Berin Loritsch move me to nowhere.

I don't see any other solution with IoC template for such task (lookup
collection) and cann't see any security problem in provioded solution.

Security: If component know Interface (Key)  for one class, it can
resolve it. If component know subinterface of Collectable, it can
resolve all components, that implement such interface (not only
Collectable, but subinterface of Collectable). Is there any security
problem?

-- 
Best regards,
 Sergey                          mailto:bsp@land.ru


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message