Package com.google.gerrit.server.plugins
Class PluginLoader
java.lang.Object
com.google.gerrit.server.plugins.PluginLoader
- All Implemented Interfaces:
- LifecycleListener,- EventListener
- 
Constructor SummaryConstructorsConstructorDescriptionPluginLoader(SitePaths sitePaths, PluginGuiceEnvironment pe, ServerInformationImpl sii, PluginUser.Factory puf, com.google.inject.Provider<com.google.gerrit.server.plugins.PluginCleanerTask> pct, org.eclipse.jgit.lib.Config cfg, com.google.inject.Provider<String> provider, PersistentCacheFactory cacheFactory, com.google.gerrit.server.plugins.UniversalServerPluginProvider pluginFactory, MandatoryPluginsCollection mpc, GerritRuntime gerritRuntime) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoiddisablePlugins(Set<String> names) voidenablePlugins(Set<String> names) getGerritPluginName(Path srcPath) getPluginName(Path srcPath) getPlugins(boolean all) installPluginFromStream(String originalName, InputStream in) booleanprunePlugins(Path pluginsDir) voidvoidrescan()voidstart()Invoked when the server is starting.voidstop()Invoked when the server is stopping.
- 
Constructor Details- 
PluginLoader@Inject public PluginLoader(SitePaths sitePaths, PluginGuiceEnvironment pe, ServerInformationImpl sii, PluginUser.Factory puf, com.google.inject.Provider<com.google.gerrit.server.plugins.PluginCleanerTask> pct, org.eclipse.jgit.lib.Config cfg, com.google.inject.Provider<String> provider, PersistentCacheFactory cacheFactory, com.google.gerrit.server.plugins.UniversalServerPluginProvider pluginFactory, MandatoryPluginsCollection mpc, GerritRuntime gerritRuntime) 
 
- 
- 
Method Details- 
getPluginName
- 
isRemoteAdminEnabledpublic boolean isRemoteAdminEnabled()
- 
checkRemoteAdminEnabled- Throws:
- MethodNotAllowedException
 
- 
get
- 
getPlugins
- 
installPluginFromStream@CanIgnoreReturnValue public String installPluginFromStream(String originalName, InputStream in) throws IOException, PluginInstallException - Throws:
- IOException
- PluginInstallException
 
- 
disablePlugins- Throws:
- PluginInstallException
 
- 
enablePlugins- Throws:
- PluginInstallException
 
- 
startpublic void start()Description copied from interface:LifecycleListenerInvoked when the server is starting.- Specified by:
- startin interface- LifecycleListener
 
- 
stoppublic void stop()Description copied from interface:LifecycleListenerInvoked when the server is stopping.- Specified by:
- stopin interface- LifecycleListener
 
- 
reload
- 
rescanpublic void rescan()
- 
prunePlugins
- 
getGerritPluginName
 
-