@Extension public class CLIRegisterer extends ExtensionFinder
CLIMethods and register them as CLICommand implementations.ExtensionFinder.DefaultGuiceExtensionAnnotation, ExtensionFinder.GuiceExtensionAnnotation<T extends Annotation>, ExtensionFinder.GuiceFinder, ExtensionFinder.SezpozExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
CLIRegisterer() |
| Modifier and Type | Method and Description |
|---|---|
<T> Collection<ExtensionComponent<T>> |
find(Class<T> type,
Hudson jenkins)
Discover extensions of the given type.
|
ExtensionComponentSet |
refresh()
Rebuilds the internal index, if any, so that future
ExtensionFinder.find(Class, Hudson) calls
will discover components newly added to PluginManager.uberClassLoader. |
_find, findExtensions, isRefreshable, scoutpublic ExtensionComponentSet refresh() throws ExtensionRefreshException
ExtensionFinderExtensionFinder.find(Class, Hudson) calls
will discover components newly added to PluginManager.uberClassLoader.
The point of the refresh operation is not to disrupt instances of already loaded ExtensionComponents,
and only instantiate those that are new. Otherwise this will break the singleton semantics of various
objects, such as Descriptors.
The behaviour is undefined if ExtensionFinder.isRefreshable() is returning false.
refresh in class ExtensionFinderExtensionRefreshExceptionExtensionFinder.isRefreshable()public <T> Collection<ExtensionComponent<T>> find(Class<T> type, Hudson jenkins)
ExtensionFinderThis method is called only once per the given type after all the plugins are loaded, so implementations need not worry about caching.
This method should return all the known components at the time of the call, including
those that are discovered later via ExtensionFinder.refresh(), even though those components
are separately returned in ExtensionComponentSet.
find in class ExtensionFinderT - 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.jenkins - Jenkins whose behalf this extension finder is performing lookup.Copyright © 2019. All rights reserved.