Package org.hotswap.agent
Class HotswapAgent
- java.lang.Object
-
- org.hotswap.agent.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringHOTSWAP_AGENT_EXPORT_PACKAGES
-
Constructor Summary
Constructors Constructor Description HotswapAgent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidagentmain(String args, Instrumentation inst)static StringgetExternalPropertiesFile()static booleanisAutoHotswap()Default autoHotswap property value.static booleanisPluginDisabled(String pluginName)Checks if the plugin is disabled (by name).static voidparseArgs(String args)static voidpremain(String args, Instrumentation inst)
-
-
-
Field Detail
-
HOTSWAP_AGENT_EXPORT_PACKAGES
public static final String HOTSWAP_AGENT_EXPORT_PACKAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
agentmain
public static void agentmain(String args, Instrumentation inst)
-
premain
public static void premain(String args, Instrumentation inst)
-
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
-
-