apache-commons-jci

Apache Commons JCI ReloadingClassLoader

故事扮演 提交于 2019-12-07 04:24:54
问题 Does anyone have any experience in using the ReloadingClassLoader of the Apache Commons JCI API? The only usage example can found in the following page: http://commons.apache.org/jci/usage.html I am assuming that whenever the directory or jar changes, it will automatically reload the classes within the classloader? If so, you would have to load/instantiate a previously loaded/instantiated class (by calling loadClass()) again to use the newly modified class? Is that correct? Hope this is clear

Apache Commons JCI ReloadingClassLoader

落花浮王杯 提交于 2019-12-05 11:01:53
Does anyone have any experience in using the ReloadingClassLoader of the Apache Commons JCI API? The only usage example can found in the following page: http://commons.apache.org/jci/usage.html I am assuming that whenever the directory or jar changes, it will automatically reload the classes within the classloader? If so, you would have to load/instantiate a previously loaded/instantiated class (by calling loadClass()) again to use the newly modified class? Is that correct? Hope this is clear. http://commons.apache.org/jci/apidocs/org/apache/commons/jci/ReloadingClassLoader.html - According to