Package hudson.model
Class DownloadService.DownloadableListener
- java.lang.Object
-
- hudson.ExtensionListListener
-
- hudson.model.DownloadService.DownloadableListener
-
- Enclosing class:
- DownloadService
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static class DownloadService.DownloadableListener extends ExtensionListListener
This installs itself as a listener to changes to the Downloadable extension list and will download the metadata for any newly added Downloadables.
-
-
Constructor Summary
Constructors Constructor Description DownloadableListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidinstallListener()Install this listener to the Downloadable extension list after all extensions have been loaded; we only care about those that are added after initializationvoidonChange()Look for Downloadables that have no data, and update them.
-
-
-
Method Detail
-
installListener
@Initializer(after=EXTENSIONS_AUGMENTED) public static void installListener()
Install this listener to the Downloadable extension list after all extensions have been loaded; we only care about those that are added after initialization
-
onChange
public void onChange()
Look for Downloadables that have no data, and update them.- Specified by:
onChangein classExtensionListListener
-
-