org.hotswap.agent.plugin.jackson.JacksonPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hotswap-agent-jackson-plugin Show documentation
Show all versions of hotswap-agent-jackson-plugin Show documentation
Java unlimited runtime class and resource redefinition.
package org.hotswap.agent.plugin.jackson;
import java.util.Collections;
import java.util.Set;
import java.util.WeakHashMap;
import org.hotswap.agent.annotation.Init;
import org.hotswap.agent.annotation.LoadEvent;
import org.hotswap.agent.annotation.OnClassLoadEvent;
import org.hotswap.agent.annotation.Plugin;
import org.hotswap.agent.command.Command;
import org.hotswap.agent.command.Scheduler;
import org.hotswap.agent.javassist.CannotCompileException;
import org.hotswap.agent.javassist.CtClass;
import org.hotswap.agent.javassist.CtConstructor;
import org.hotswap.agent.javassist.CtMethod;
import org.hotswap.agent.javassist.CtNewMethod;
import org.hotswap.agent.logging.AgentLogger;
import org.hotswap.agent.util.PluginManagerInvoker;
import org.hotswap.agent.util.ReflectionHelper;
/**
* Reload jackson caches after class change
*
* @author liuzhengyang
* 2021/12/3
*/
@Plugin(name = "JacksonPlugin",
description = "Reload jackson caches after class change",
testedVersions = {"2.13.0"},
expectedVersions = {"2.13.0"}
)
public class JacksonPlugin {
private static final AgentLogger LOGGER = AgentLogger.getLogger(JacksonPlugin.class);
private static final String CLEAR_CACHE_METHOD = "ha$$clearCache";
public static boolean reloadFlag = false;
private final Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy