Package com.google.gerrit.server.plugins
Class PluginLoader
java.lang.Object
com.google.gerrit.server.plugins.PluginLoader
- All Implemented Interfaces:
LifecycleListener,EventListener
-
Constructor Summary
ConstructorsConstructorDescriptionPluginLoader(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 Summary
Modifier 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
-
isRemoteAdminEnabled
public boolean isRemoteAdminEnabled() -
checkRemoteAdminEnabled
- Throws:
MethodNotAllowedException
-
get
-
getPlugins
-
installPluginFromStream
public String installPluginFromStream(String originalName, InputStream in) throws IOException, PluginInstallException - Throws:
IOExceptionPluginInstallException
-
disablePlugins
-
enablePlugins
- Throws:
PluginInstallException
-
start
public void start()Description copied from interface:LifecycleListenerInvoked when the server is starting.- Specified by:
startin interfaceLifecycleListener
-
stop
public void stop()Description copied from interface:LifecycleListenerInvoked when the server is stopping.- Specified by:
stopin interfaceLifecycleListener
-
reload
-
rescan
public void rescan() -
prunePlugins
-
getGerritPluginName
-