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
Default implementation of
PluginManager.- 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
ConstructorsConstructorDescriptionLocalPluginManager(jakarta.servlet.ServletContext context, File rootDir) Creates a new LocalPluginManagerLocalPluginManager(File rootDir) Creates a new LocalPluginManagerLocalPluginManager(javax.servlet.ServletContext context, File rootDir) Deprecated.LocalPluginManager(Jenkins jenkins) Creates a new LocalPluginManager -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String> 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, doUploadPlugin, dynamicLoad, dynamicLoad, getApi, getBundledPluginManifest, getDetachedLocation, getDisplayName, getFailedPlugins, getLastErrorCheckUpdateCenters, getOverrides, getPlugin, getPlugin, getPlugins, getPlugins, getPluginsSortedByTitle, getPluginStrategy, getProxyDescriptor, getSearchUrl, getTarget, getUpdates, getWorkDir, hasAdoptThisPluginLabel, hasAdoptThisPluginLabel, identifyPluginShortName, initTasks, install, isMetaLabel, isNonMetaLabel, isPluginUploaded, loadDetachedPlugins, loadPluginsFromWar, loadPluginsFromWar, parseRequestedPlugins, prevalidateConfig, resolveDependentPlugins, start, stop, unscientific, whichPluginMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Constructor Details
-
LocalPluginManager
public LocalPluginManager(@CheckForNull jakarta.servlet.ServletContext context, @NonNull File rootDir) Creates a new LocalPluginManager- Parameters:
context- Servlet context. Provided for compatibility asJenkins.get().servletContextshould be used.rootDir- Jenkins home directory.
-
LocalPluginManager
@Deprecated public LocalPluginManager(@CheckForNull javax.servlet.ServletContext context, @NonNull File rootDir) Deprecated. -
LocalPluginManager
Creates a new LocalPluginManager- Parameters:
jenkins- Jenkins instance that will use the plugin manager.
-
LocalPluginManager
Creates a new LocalPluginManager- Parameters:
rootDir- Jenkins home directory.
-
-
Method Details
-
loadBundledPlugins
Description copied from class:PluginManagerIf the war file has any "/WEB-INF/plugins/[*.jpi | *.hpi]", extract them into the plugin directory.- Specified by:
loadBundledPluginsin classPluginManager- Returns:
- File names of the bundled plugins. Normally empty (not to be confused with
PluginManager.loadDetachedPlugins()) but OEM WARs may have some.
-
LocalPluginManager(ServletContext, File)