Mail Archive Home | asm List | November 2008 Index
| <-- Date Index --> | <-- Thread Index --> |
Look, for example, at ClassInfo API in AspectWerkz project. We also have more rudimentary implementation of similar functionality in one of the ASM's tests, e.g. see ClassWriterComputeFramesTest.transformClass() method.
regards, Eugene jessh@xxxxxxx wrote:
In a java.lang.instrument.ClassFileTransformer implementation, I wish to efficiently pick out classes that implement certain interfaces or sub-class certain classes. It is obvious how to do this if the interface or class in question is a direct parent of the class in question. What is less clear is how to safely (and efficiently) do this for parents several levels removed. What's the normal pattern here? I'm obviously familiar with the reflection APIs, but I also unsure one can safely do Class parent = Class.forName( className.replace( '/', '.' ) ); or the like. Sorry if this is a dumb question.
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.