Package hudson
Class ExtensionListView
- java.lang.Object
-
- hudson.ExtensionListView
-
public class ExtensionListView extends Object
Compatibility layer for legacy manual registration of extension points.Instances of this class can be created statically as a singleton, but it provides the view to
ExtensionListof the currentJenkins. Write operations to this list will update the legacy instances onExtensionList.Whereas we used to use some simple data structure to keep track of static singletons, we can now use this instances, so that
ExtensionListsees all the auto-registered and manually registered instances.Similarly, the old list (such as
UserNameResolver.LISTcontinues to show all auto and manually registered instances, thus providing necessary bi-directional interoperability.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description ExtensionListView()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> CopyOnWriteList<T>createCopyOnWriteList(Class<T> type)Creates a seriously hacked upCopyOnWriteListthat acts as a view to the currentExtensionList.static <T> List<T>createList(Class<T> type)Creates a plainListbacked by the currentExtensionList.
-
-
-
Method Detail
-
createList
public static <T> List<T> createList(Class<T> type)
Creates a plainListbacked by the currentExtensionList.
-
createCopyOnWriteList
public static <T> CopyOnWriteList<T> createCopyOnWriteList(Class<T> type)
Creates a seriously hacked upCopyOnWriteListthat acts as a view to the currentExtensionList.
-
-