Adding SaveableListener, with calls to SaveableListener.fireOnChange in Saveable.save implementations

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23502 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
abayer committed 2009-11-05 16:11:47 +00:00
1 parent 26547976ac
commit 91bffe3b46
14 files changed
+119 -2

No files matched your search

@@ -25,6 +25,7 @@ package hudson;
import hudson.model.Hudson;
import hudson.model.Saveable;
import hudson.model.listeners.SaveableListener;
import hudson.util.Scrambler;
import hudson.util.XStream2;
@@ -89,6 +90,7 @@ public final class ProxyConfiguration implements Saveable {
public void save() throws IOException {
if(BulkChange.contains(this)) return;
getXmlFile().write(this);
SaveableListener.fireOnChange(this, getXmlFile());
}
public static XmlFile getXmlFile() {