Class HotswapAgent


  • public class HotswapAgent
    extends Object
    Register the agent and initialize plugin manager singleton instance.

    This class must be registered in META-INF/MANIFEST.MF: Agent-Class: org.hotswap.agent.HotswapAgent Premain-Class: org.hotswap.agent.HotswapAgent

    Use with -javaagent agent.jar to use with an application.

    Author:
    Jiri Bubnik
    • Constructor Detail

      • HotswapAgent

        public HotswapAgent()
    • Method Detail

      • parseArgs

        public static void parseArgs​(String args)
      • getExternalPropertiesFile

        public static String getExternalPropertiesFile()
        Returns:
        the path for the hotswap-agent.properties external file
      • isPluginDisabled

        public static boolean isPluginDisabled​(String pluginName)
        Checks if the plugin is disabled (by name).
        Parameters:
        pluginName - plugin name (e.g. Tomcat, Spring, ...)
        Returns:
        true if the plugin is disabled
      • isAutoHotswap

        public static boolean isAutoHotswap()
        Default autoHotswap property value.
        Returns:
        true if autoHotswap=true command line option was specified