|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.ExtensionListView
public class ExtensionListView
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 ExtensionList
of the current Jenkins
.
Write operations to this list will update the legacy instances on ExtensionList
.
Whereas we used to use some simple data structure to keep track of static singletons,
we can now use this instances, so that ExtensionList
sees all the auto-registered
and manually registered instances.
Similarly, the old list (such as UserNameResolver.LIST
continues to show all
auto and manually registered instances, thus providing necessary bi-directional interoperability.
Constructor Summary | |
---|---|
ExtensionListView()
|
Method Summary | ||
---|---|---|
static
|
createCopyOnWriteList(Class<T> type)
Creates a seriously hacked up CopyOnWriteList that acts as a view to the current ExtensionList . |
|
static
|
createList(Class<T> type)
Creates a plain List backed by the current ExtensionList . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensionListView()
Method Detail |
---|
public static <T> List<T> createList(Class<T> type)
List
backed by the current ExtensionList
.
public static <T> CopyOnWriteList<T> createCopyOnWriteList(Class<T> type)
CopyOnWriteList
that acts as a view to the current ExtensionList
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |