Package com.google.gerrit.server.plugins
Class TestServerPlugin
- java.lang.Object
-
- com.google.gerrit.server.plugins.Plugin
-
- com.google.gerrit.server.plugins.ServerPlugin
-
- com.google.gerrit.server.plugins.TestServerPlugin
-
public class TestServerPlugin extends ServerPlugin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.server.plugins.Plugin
Plugin.ApiType, Plugin.CacheKey
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.plugins.ServerPlugin
batchModule, httpModule, sshModule, sysModule
-
-
Constructor Summary
Constructors Constructor Description TestServerPlugin(String name, String pluginCanonicalWebUrl, PluginUser user, ClassLoader classloader, String sysName, String httpName, String sshName, Path dataDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canReload()
PluginContentScanner
getContentScanner()
String
getVersion()
void
start(PluginGuiceEnvironment env)
void
stop(PluginGuiceEnvironment env)
-
Methods inherited from class com.google.gerrit.server.plugins.ServerPlugin
add, getApiVersion, getHttpInjector, getSshInjector, getSysInjector, load
-
Methods inherited from class com.google.gerrit.server.plugins.Plugin
getApiType, getCacheKey, getCleanupHandle, getName, getSrcFile, isDisabled, setCleanupHandle, toString
-
-
-
-
Constructor Detail
-
TestServerPlugin
public TestServerPlugin(String name, String pluginCanonicalWebUrl, PluginUser user, ClassLoader classloader, String sysName, String httpName, String sshName, Path dataDir) throws InvalidPluginException
- Throws:
InvalidPluginException
-
-
Method Detail
-
getVersion
public String getVersion()
- Overrides:
getVersion
in classServerPlugin
-
canReload
protected boolean canReload()
- Overrides:
canReload
in classServerPlugin
-
start
public void start(PluginGuiceEnvironment env) throws Exception
- Overrides:
start
in classServerPlugin
- Throws:
Exception
-
stop
public void stop(PluginGuiceEnvironment env)
- Overrides:
stop
in classServerPlugin
-
getContentScanner
public PluginContentScanner getContentScanner()
- Overrides:
getContentScanner
in classServerPlugin
-
-