Skip to content

Monitors Java class files in the file system for changes and reloads them into a running Java virtual machine. Use this during development to reload classes instead of redeploying an application.

License

pukkaone/class-reload-agent

Repository files navigation

Class Reload Agent

Monitors Java class files in the file system for changes and reloads them into a running Java virtual machine. Use this during development to reload classes instead of redeploying an application.

This is a fork of AgentSmith modified to monitor multiple class directories.

The implementation uses HotSwap, so it can reload a class only if a method body was changed. It cannot reload a class if a field or method was added or deleted. Buy JRebel if you want something more capable. The expense is more than made up by the savings in developer time.

Usage

Add this Java virtual machine command line option:

-javaagent:/path/to/class-reload-agent.jar=classes=classpath

where classpath is a list of directories separated by the system-dependent path-separator. On UNIX systems, the path-separator is :. On Windows systems, it is ;.

About

Monitors Java class files in the file system for changes and reloads them into a running Java virtual machine. Use this during development to reload classes instead of redeploying an application.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages