Package org.grails.core.io

Examples of org.grails.core.io.GrailsResource


            for (Resource resource : resources) {
                // ignore not readable classes and closures
                if(!resource.isReadable() || resource.getFilename().contains("$_")) continue;
                try {

                    MetadataReader metadataReader = readerFactory.getMetadataReader(new GrailsResource(resource));
                    AnnotationMetadata annotationMetadata = metadataReader.getAnnotationMetadata();
                    if(annotationMetadata.hasAnnotation(AstTransformer.class.getName()) || annotationMetadata.hasAnnotation(org.codehaus.groovy.grails.compiler.injection.AstTransformer.class.getName())) {
                        String className = metadataReader.getClassMetadata().getClassName();
                        Class<?> injectorClass = classLoader.loadClass(className);
                        if(injectorClasses.contains(injectorClass)) continue;
View Full Code Here

TOP

Related Classes of org.grails.core.io.GrailsResource

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.