public abstract class SaveableListener extends Object implements ExtensionPoint
Saveable
objects in Hudson.
This is an abstract class so that methods added in the future won't break existing listeners.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
SaveableListener() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<SaveableListener> |
all()
Returns all the registered
SaveableListener descriptors. |
static void |
fireOnChange(Saveable o,
XmlFile file)
Fires the
onChange(hudson.model.Saveable, hudson.XmlFile) event. |
void |
onChange(Saveable o,
XmlFile file)
Called when a change is made to a
Saveable object. |
void |
register()
Deprecated.
as of 1.281
Put
Extension on your class to get it auto-registered. |
void |
unregister()
Reverse operation of
register() . |
public void onChange(Saveable o, XmlFile file)
Saveable
object.o
- The saveable object.file
- The XmlFile
for this saveable object.@Deprecated public void register()
Extension
on your class to get it auto-registered.public void unregister()
register()
.public static void fireOnChange(Saveable o, XmlFile file)
onChange(hudson.model.Saveable, hudson.XmlFile)
event.public static ExtensionList<SaveableListener> all()
SaveableListener
descriptors.Copyright © 2004–2021. All rights reserved.