Class DefaultChildLoader

java.lang.Object
com.cloudbees.hudson.plugins.folder.ChildLoader
com.cloudbees.hudson.plugins.folder.DefaultChildLoader
All Implemented Interfaces:
ExtensionPoint

@Extension public final class DefaultChildLoader extends ChildLoader
  • Constructor Details

    • DefaultChildLoader

      public DefaultChildLoader()
  • Method Details

    • loadChildren

      public <K, V extends TopLevelItem> Map<K,V> loadChildren(AbstractFolder<V> parent, File modulesDir, Function<? super V,? extends K> key)
      Description copied from class: ChildLoader
      Loads all the child Items.
      Specified by:
      loadChildren in class ChildLoader
      Type Parameters:
      K - the key type
      V - the child type.
      Parameters:
      parent - the parent of the children.
      modulesDir - Directory that contains sub-directories for each child item.
      key - the key generating function.
      Returns:
      a map of the children keyed by the generated keys.