mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
add some logging to class reloading
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@794094 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+8
-2
@@ -178,16 +178,22 @@ public class ClassReloadingXMLWebApplicationContext extends XmlWebApplicationCon
|
||||
}
|
||||
|
||||
public void onDirectoryCreate(File file) {
|
||||
if (classLoader != null)
|
||||
if (classLoader != null) {
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Change detected in file [#0], reloading class loader", file.getAbsolutePath());
|
||||
classLoader.reload();
|
||||
}
|
||||
}
|
||||
|
||||
public void onDirectoryDelete(File file) {
|
||||
}
|
||||
|
||||
public void onFileChange(File file) {
|
||||
if (classLoader != null)
|
||||
if (classLoader != null) {
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Change detected in file [#0], reloading class loader", file.getAbsolutePath());
|
||||
classLoader.reload();
|
||||
}
|
||||
}
|
||||
|
||||
public void onFileCreate(File file) {
|
||||
|
||||
Reference in New Issue
Block a user