On Monday 02 August 2004 23:52, Sergey M Vladimrov wrote: > Hopw about to requere that all such interfaces whould extends some > interface, like "Collectionable" (soory for my English).
Collectable is probably the word you are seeking. > interface MyFilter extends Collectionable > > MyService1 implement MyFilter > MyService2 implement MyFilter > > ServiceManager.lookupAll(MyFilter.class) return {MyService1, MyService2} > > ServiceManager.lookupAll(Collectionable.class) throw Exception > > ServiceManager.lookupAll(Object.class) throw Exception Java language works better :o) It is an interesting thought, since you are basically saying, "I know there are a bunch of components intended for me, so bring them on..." OTOH, if the component to be looked up is dedicated for this purpose, why isn't the MyService1 looking up the "other guy" and adds himself over a component specific method?? Cheers Niclas -- +------//-------------------+ / http://www.bali.ac / / http://niclas.hedhman.org / +------//-------------------+ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]