Search in sources :

Example 1 with AbstractGrailsArtefactTransformer

use of org.grails.compiler.injection.AbstractGrailsArtefactTransformer in project grails-core by grails.

the class GrailsSpringLoadedPlugin method reloadEvent.

@Override
public void reloadEvent(String typename, Class<?> clazz, String encodedTimestamp) {
    CachedIntrospectionResults.clearClassLoader(clazz.getClassLoader());
    Introspector.flushFromCaches(clazz);
    ClassInjector[] classInjectors = GrailsAwareInjectionOperation.getClassInjectors();
    for (ClassInjector classInjector : classInjectors) {
        if (classInjector instanceof AbstractGrailsArtefactTransformer) {
            ((AbstractGrailsArtefactTransformer) classInjector).clearCachedState();
        }
    }
    pluginManager.informOfClassChange(clazz);
}
Also used : AbstractGrailsArtefactTransformer(org.grails.compiler.injection.AbstractGrailsArtefactTransformer) ClassInjector(grails.compiler.ast.ClassInjector)

Aggregations

ClassInjector (grails.compiler.ast.ClassInjector)1 AbstractGrailsArtefactTransformer (org.grails.compiler.injection.AbstractGrailsArtefactTransformer)1