Automatically load/unload/reload plugins
The PluginScanner thread runs every 1 minute by default and loads any
newly created plugins, unloads any deleted plugins, and reloads any
plugins that have been modified.
It is generally unsafe to delete or modify a JAR that the running
server is using. The standard URLClassLoader might need to dynamically
open the JAR to access a newly referenced class file or resource, and
it often uses a cached table of contents from the JAR's ZIP format.
If someone replaces the JAR on disk, the running URLClassLoader may
try to incorrectly read from it. Discourage this with a warning, but
still permit reloading the plugin whenever it is modified.
Change-Id: I7afb61925235f94c015024d00e0d5830d56d6f2d
3 files changed