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 Details

    • DownloadableListener

      public DownloadableListener()
  • Method Details

    • 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:
      onChange in class ExtensionListListener