Package jenkins
Class ExtensionComponentSet
- java.lang.Object
-
- jenkins.ExtensionComponentSet
-
public abstract class ExtensionComponentSet extends Object
Represents the components that's newly discovered duringExtensionFinder.refresh().- Since:
- 1.442
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description static ExtensionComponentSetEMPTYConstant that has zero component in it.
-
Constructor Summary
Constructors Constructor Description ExtensionComponentSet()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionComponentSetallOf(ExtensionFinder f)WrapsExtensionFinderintoExtensionComponentSet.ExtensionComponentSetfiltered()ApplyExtensionFilters and returns a filtered set.abstract <T> Collection<ExtensionComponent<T>>find(Class<T> type)Discover extensions of the given type.static ExtensionComponentSetunion(Collection<? extends ExtensionComponentSet> base)Computes the union of all the given delta.static ExtensionComponentSetunion(ExtensionComponentSet... members)
-
-
-
Field Detail
-
EMPTY
public static final ExtensionComponentSet EMPTY
Constant that has zero component in it.
-
-
Method Detail
-
find
public abstract <T> Collection<ExtensionComponent<T>> find(Class<T> type)
Discover extensions of the given type.This method is called only once per the given type after all the plugins are loaded, so implementations need not worry about caching.
- Type Parameters:
T- The type of the extension points. This is not bound toExtensionPointbecause ofDescriptor, which by itself doesn't implementExtensionPointfor a historical reason.- Returns:
- Can be empty but never null.
-
filtered
public final ExtensionComponentSet filtered()
ApplyExtensionFilters and returns a filtered set.
-
union
public static ExtensionComponentSet union(Collection<? extends ExtensionComponentSet> base)
Computes the union of all the given delta.
-
union
public static ExtensionComponentSet union(ExtensionComponentSet... members)
-
allOf
public static ExtensionComponentSet allOf(ExtensionFinder f)
WrapsExtensionFinderintoExtensionComponentSet.
-
-