Package org.codehaus.aspectwerkz.annotation.instrumentation.asm

Examples of org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAttributeExtractor


     */
    public static synchronized AttributeExtractor getAttributeExtractor(final Class klass) {
        if (klass.isPrimitive() || klass.isArray() || klass.getName().startsWith("java.")) {
            return null;
        }
        AsmAttributeExtractor extractor;
        if ((extractor = (AsmAttributeExtractor) s_extractorCache.get(klass)) == null) {
            String className = klass.getName();
            try {
                ClassLoader loader = klass.getClassLoader();
                if (loader != null) {
                    extractor = new AsmAttributeExtractor();
                    if (extractor.initialize(className, klass.getClassLoader())) {
                        s_extractorCache.put(klass, extractor);
                    } else {
                        return null;
                    }
                } else {
                    // bootstrap classloader
                    extractor = new AsmAttributeExtractor();
                    if (extractor.initialize(className, ClassLoader.getSystemClassLoader())) {
                        s_extractorCache.put(klass, extractor);
                    } else {
                        return null;
                    }
                }
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAttributeExtractor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.