Re: Re: getting all the interfaces for a class
Rajaraman Santhanam <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <12baf8ea9e0.-1685768544105613268.5236946575381362611@zohocorp.com> |
Checked the MetadataReaderFactory. The ASM based implementation returns just what ClassVisitor returns. Only the StandardClassMetadata implementation returns all the interfaces implementaed by the underlying class. However this implementation is reflection based :-( which would not suit my needs. Looks like I'll have to keep track of the classes that implements the interface. thanks, ramanr ---- On Fri, 15 Oct 2010 15:29:53 +0530 Maciej Lopacinski <[email protected]> wrote ---- On 10/15/2010 09:23 AM, Rajaraman Santhanam wrote: > I would like to know the best solution to find out all the classes that > implement an interface either directly or indirectly (by implementing > the super interface of that interface or extending a class that > implements that interface). Hm, that's how Spring Components scanning works. Have a look at source code, try MetadataReaderFactory (don't remember, I played with it long time ago). [..] > thanks, > ramanr
message-footer.txt
(text/plain, 238 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws