/** * Add bean registry field to context, register bean instances in get(...) methods * * @param classPool the class pool * @param ctClass the ct class * @throws CannotCompileException the cannot compile exception * @throws NotFoundException the not found exception */ public static void transformContext(ClassPool classPool, CtClass ctClass) throws CannotCompileException, NotFoundException { addBeanRegistryToContext(classPool, ctClass); transformGet1(classPool, ctClass); transformGet2(classPool, ctClass); LOGGER.debug(ctClass.getName() + " - patched by bean registration."); }