Package hudson

Class ExtensionList<T>

Type Parameters:
T - Type of the extension point. This class holds instances of the subtypes of 'T'.
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, OnMaster
Direct Known Subclasses:
DescriptorExtensionList

public class ExtensionList<T> extends AbstractList<T> implements OnMaster
Retains the known extension instances for the given type 'T'.

Extensions are loaded lazily on demand and automatically by using ExtensionFinder, but this class also provides a mechanism to provide compatibility with the older DescriptorList-based manual registration,

All ExtensionList instances should be owned by Jenkins, even though extension points can be defined by anyone on any type. Use Jenkins.getExtensionList(Class) and Jenkins.getDescriptorList(Class) to obtain the instances.

Since:
1.286
Author:
Kohsuke Kawaguchi
See Also: