jenkins
Class ExtensionComponentSet

java.lang.Object
  extended by jenkins.ExtensionComponentSet

public abstract class ExtensionComponentSet
extends Object

Represents the components that's newly discovered during ExtensionFinder.refresh().

Since:
1.442
Author:
Kohsuke Kawaguchi

Field Summary
static ExtensionComponentSet EMPTY
          Constant that has zero component in it.
 
Constructor Summary
ExtensionComponentSet()
           
 
Method Summary
static ExtensionComponentSet allOf(ExtensionFinder f)
          Wraps ExtensionFinder into ExtensionComponentSet.
 ExtensionComponentSet filtered()
          Apply ExtensionFilters and returns a filtered set.
abstract
<T> Collection<ExtensionComponent<T>>
find(Class<T> type)
          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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final ExtensionComponentSet EMPTY
Constant that has zero component in it.

Constructor Detail

ExtensionComponentSet

public ExtensionComponentSet()
Method Detail

find

public abstract <T> Collection<ExtensionComponent<T>> find(Class<T> type)
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 to ExtensionPoint because of Descriptor, which by itself doesn't implement ExtensionPoint for a historical reason.
Returns:
Can be empty but never null.

filtered

public final ExtensionComponentSet filtered()
Apply ExtensionFilters and returns a filtered set.


union

public static ExtensionComponentSet union(Collection<? extends ExtensionComponentSet> base)
Computes the union of all the given delta.


union

public static ExtensionComponentSet union(ExtensionComponentSet... members)

allOf

public static ExtensionComponentSet allOf(ExtensionFinder f)
Wraps ExtensionFinder into ExtensionComponentSet.



Copyright © 2004-2013. All Rights Reserved.