Class DefaultChildLoader
java.lang.Object
com.cloudbees.hudson.plugins.folder.ChildLoader
com.cloudbees.hudson.plugins.folder.DefaultChildLoader
- All Implemented Interfaces:
ExtensionPoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<K,
V extends TopLevelItem>
Map<K,V> loadChildren
(AbstractFolder<V> parent, File modulesDir, Function<? super V, ? extends K> key) Loads all the childItem
s.Methods inherited from class com.cloudbees.hudson.plugins.folder.ChildLoader
ensureDirExists, getItemsByDirName, loadItem
-
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 childItem
s.- Specified by:
loadChildren
in classChildLoader
- Type Parameters:
K
- the key typeV
- 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.
-