mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 01:56:03 +00:00
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:
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() {
|
||||
|
||||
Reference in new issue
Block a user