Package jenkins
Class ExtensionComponentSet
java.lang.Object
jenkins.ExtensionComponentSet
Represents the components that's newly discovered during
ExtensionFinder.refresh()
.- Since:
- 1.442
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ExtensionComponentSet
Constant that has zero component in it. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionComponentSet
WrapsExtensionFinder
intoExtensionComponentSet
.final ExtensionComponentSet
filtered()
ApplyExtensionFilter
s and returns a filtered set.abstract <T> Collection<ExtensionComponent<T>>
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 Details
-
EMPTY
Constant that has zero component in it.
-
-
Constructor Details
-
ExtensionComponentSet
public ExtensionComponentSet()
-
-
Method Details
-
find
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
ApplyExtensionFilter
s and returns a filtered set. -
union
Computes the union of all the given delta. -
union
-
allOf
WrapsExtensionFinder
intoExtensionComponentSet
.
-