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);
}
Aggregations