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 ExtensionComponentSet
EMPTY
Constant 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 ExtensionComponentSet
allOf(ExtensionFinder f)
WrapsExtensionFinder
intoExtensionComponentSet
.ExtensionComponentSet
filtered()
ApplyExtensionFilter
s and returns a filtered set.abstract <T> Collection<ExtensionComponent<T>>
find(Class<T> type)
Discover extensions of the given type.static ExtensionComponentSet
union(Collection<? extends ExtensionComponentSet> base)
Computes the union of all the given delta.static ExtensionComponentSet
union(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 toExtensionPoint
because ofDescriptor
, which by itself doesn't implementExtensionPoint
for a historical reason.- Returns:
- Can be empty but never null.
-
filtered
public final ExtensionComponentSet filtered()
ApplyExtensionFilter
s 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)
WrapsExtensionFinder
intoExtensionComponentSet
.
-
-