org.zeroturnaround.javarebel.integration.spring.cbp.DispatcherServletCBP Maven / Gradle / Ivy
package org.zeroturnaround.javarebel.integration.spring.cbp;
import org.zeroturnaround.bundled.javassist.ClassPool;
import org.zeroturnaround.bundled.javassist.CtClass;
import org.zeroturnaround.bundled.javassist.CtMethod;
import org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor;
public class DispatcherServletCBP extends JavassistClassBytecodeProcessor {
public void process(ClassPool cp, ClassLoader cl, CtClass ctClass) throws Exception {
cp.importPackage("org.zeroturnaround.javarebel.integration.spring");
CtMethod m = ctClass.getDeclaredMethod("doDispatch");
m.insertBefore("SpringBeanReloader.reloadBeanDefinitions();");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy