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 TypeMethodDescriptionvoid
void
disablePlugins
(Set<String> names) void
enablePlugins
(Set<String> names) getGerritPluginName
(Path srcPath) getPluginName
(Path srcPath) getPlugins
(boolean all) installPluginFromStream
(String originalName, InputStream in) boolean
prunePlugins
(Path pluginsDir) void
void
rescan()
void
start()
Invoked when the server is starting.void
stop()
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
@CanIgnoreReturnValue public String installPluginFromStream(String originalName, InputStream in) throws IOException, PluginInstallException - Throws:
IOException
PluginInstallException
-
disablePlugins
- Throws:
PluginInstallException
-
enablePlugins
- Throws:
PluginInstallException
-
start
public void start()Description copied from interface:LifecycleListener
Invoked when the server is starting.- Specified by:
start
in interfaceLifecycleListener
-
stop
public void stop()Description copied from interface:LifecycleListener
Invoked when the server is stopping.- Specified by:
stop
in interfaceLifecycleListener
-
reload
-
rescan
public void rescan() -
prunePlugins
-
getGerritPluginName
-