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
FieldsModifier and TypeFieldDescriptionstatic final ExtensionComponentSetConstant that has zero component in it. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionComponentSetWrapsExtensionFinderintoExtensionComponentSet.final ExtensionComponentSetfiltered()ApplyExtensionFilters and returns a filtered set.abstract <T> Collection<ExtensionComponent<T>>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 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 toExtensionPointbecause ofDescriptor, which by itself doesn't implementExtensionPointfor a historical reason.- Returns:
- Can be empty but never null.
-
filtered
ApplyExtensionFilters and returns a filtered set. -
union
Computes the union of all the given delta. -
union
-
allOf
WrapsExtensionFinderintoExtensionComponentSet.
-