Package hudson.model.listeners
Class SaveableListener
- java.lang.Object
-
- hudson.model.listeners.SaveableListener
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
Nodes.ScheduleMaintenanceAfterSavingNode
public abstract class SaveableListener extends Object implements ExtensionPoint
Receives notifications about save actions onSaveableobjects in Hudson.This is an abstract class so that methods added in the future won't break existing listeners.
- Since:
- 1.334
- Author:
- Andrew Bayer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SaveableListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ExtensionList<SaveableListener>all()Returns all the registeredSaveableListenerdescriptors.static voidfireOnChange(Saveable o, XmlFile file)Fires theonChange(hudson.model.Saveable, hudson.XmlFile)event.voidonChange(Saveable o, XmlFile file)Called when a change is made to aSaveableobject.voidregister()Deprecated.as of 1.281 PutExtensionon your class to get it auto-registered.voidunregister()Reverse operation ofregister().
-
-
-
Method Detail
-
onChange
public void onChange(Saveable o, XmlFile file)
Called when a change is made to aSaveableobject.- Parameters:
o- The saveable object.file- TheXmlFilefor this saveable object.
-
register
@Deprecated public void register()
Deprecated.as of 1.281 PutExtensionon your class to get it auto-registered.Registers this object as an active listener so that it can start getting callbacks invoked.
-
unregister
public void unregister()
Reverse operation ofregister().
-
fireOnChange
public static void fireOnChange(Saveable o, XmlFile file)
Fires theonChange(hudson.model.Saveable, hudson.XmlFile)event.
-
all
public static ExtensionList<SaveableListener> all()
Returns all the registeredSaveableListenerdescriptors.
-
-