Package hudson
Class LocalPluginManager
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.PluginManager
-
- hudson.LocalPluginManager
-
- All Implemented Interfaces:
ModelObject
,SearchableModelObject
,SearchItem
,OnMaster
,org.kohsuke.stapler.StaplerOverridable
,org.kohsuke.stapler.StaplerProxy
public class LocalPluginManager extends PluginManager
Default implementation ofPluginManager
.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.PluginManager
PluginManager.FailedPlugin, PluginManager.MetadataCache, PluginManager.PluginCycleDependenciesMonitor, PluginManager.PluginDeprecationMonitor, PluginManager.PluginUpdateMonitor, PluginManager.UberClassLoader, PluginManager.UpdateCenterProxy
-
-
Field Summary
-
Fields inherited from class hudson.PluginManager
activePlugins, CONFIGURE_UPDATECENTER, context, CUSTOM_PLUGIN_MANAGER, failedPlugins, FAST_LOOKUP, plugins, pluginUploaded, rootDir, SKIP_PERMISSION_CHECK, uberClassLoader, UPLOAD_PLUGINS
-
-
Constructor Summary
Constructors Constructor Description LocalPluginManager(File rootDir)
Creates a new LocalPluginManagerLocalPluginManager(javax.servlet.ServletContext context, File rootDir)
Creates a new LocalPluginManagerLocalPluginManager(Jenkins jenkins)
Creates a new LocalPluginManager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<String>
loadBundledPlugins()
If the war file has any "/WEB-INF/plugins/[*.jpi | *.hpi]", extract them into the plugin directory.-
Methods inherited from class hudson.PluginManager
addDependencies, copyBundledPlugin, createCache, createDefault, createPluginStrategy, disablePlugins, discover, doCheckPluginUrl, doCheckUpdateSiteUrl, doCheckUpdatesServer, doInstall, doInstallNecessaryPlugins, doInstallPlugins, doInstallPluginsDone, doPlugins, doPluginsSearch, doPrevalidateConfig, doProxyConfigure, doSiteConfigure, doUpdateSources, doUploadPlugin, dynamicLoad, dynamicLoad, getApi, getBundledPluginManifest, getDetachedLocation, getDisplayName, getFailedPlugins, getLastErrorCheckUpdateCenters, getOverrides, getPlugin, getPlugin, getPlugins, getPlugins, getPluginStrategy, getProxyDescriptor, getSearchUrl, getTarget, getUpdates, getWorkDir, hasAdoptThisPluginLabel, hasAdoptThisPluginLabel, identifyPluginShortName, initTasks, install, isMetaLabel, isNonMetaLabel, isPluginUploaded, loadDetachedPlugins, loadPluginsFromWar, loadPluginsFromWar, parseRequestedPlugins, prevalidateConfig, resolveDependentPlugins, start, stop, unscientific, whichPlugin
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
-
-
-
Constructor Detail
-
LocalPluginManager
public LocalPluginManager(@CheckForNull javax.servlet.ServletContext context, @NonNull File rootDir)
Creates a new LocalPluginManager- Parameters:
context
- Servlet context. Provided for compatibility asJenkins.get().servletContext
should be used.rootDir
- Jenkins home directory.
-
LocalPluginManager
public LocalPluginManager(@NonNull Jenkins jenkins)
Creates a new LocalPluginManager- Parameters:
jenkins
- Jenkins instance that will use the plugin manager.
-
LocalPluginManager
public LocalPluginManager(@NonNull File rootDir)
Creates a new LocalPluginManager- Parameters:
rootDir
- Jenkins home directory.
-
-
Method Detail
-
loadBundledPlugins
protected Collection<String> loadBundledPlugins()
Description copied from class:PluginManager
If the war file has any "/WEB-INF/plugins/[*.jpi | *.hpi]", extract them into the plugin directory.- Specified by:
loadBundledPlugins
in classPluginManager
- Returns:
- File names of the bundled plugins. Normally empty (not to be confused with
PluginManager.loadDetachedPlugins()
) but OEM WARs may have some.
-
-