Package com.google.gerrit.server.plugins
Class ServerPlugin
- java.lang.Object
- 
- com.google.gerrit.server.plugins.Plugin
- 
- com.google.gerrit.server.plugins.ServerPlugin
 
 
- 
- Direct Known Subclasses:
- TestServerPlugin
 
 public class ServerPlugin extends Plugin 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.google.gerrit.server.plugins.PluginPlugin.ApiType, Plugin.CacheKey
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected Class<? extends com.google.inject.Module>batchModuleprotected Class<? extends com.google.inject.Module>httpModuleprotected Class<? extends com.google.inject.Module>sshModuleprotected Class<? extends com.google.inject.Module>sysModule
 - 
Constructor SummaryConstructors Constructor Description ServerPlugin(String name, String pluginCanonicalWebUrl, PluginUser pluginUser, Path srcJar, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, PluginContentScanner scanner, Path dataDir, ClassLoader classLoader, String metricsPrefix, GerritRuntime gerritRuntime)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(RegistrationHandle handle)protected booleancanReload()StringgetApiVersion()PluginContentScannergetContentScanner()com.google.inject.InjectorgetHttpInjector()com.google.inject.InjectorgetSshInjector()com.google.inject.InjectorgetSysInjector()StringgetVersion()protected static Class<? extends com.google.inject.Module>load(String name, ClassLoader pluginLoader)protected voidstart(PluginGuiceEnvironment env)protected voidstop(PluginGuiceEnvironment env)- 
Methods inherited from class com.google.gerrit.server.plugins.PlugingetApiType, getCacheKey, getCleanupHandle, getName, getSrcFile, isDisabled, setCleanupHandle, toString
 
- 
 
- 
- 
- 
Field Detail- 
sysModuleprotected Class<? extends com.google.inject.Module> sysModule 
 - 
batchModuleprotected Class<? extends com.google.inject.Module> batchModule 
 - 
sshModuleprotected Class<? extends com.google.inject.Module> sshModule 
 - 
httpModuleprotected Class<? extends com.google.inject.Module> httpModule 
 
- 
 - 
Constructor Detail- 
ServerPluginpublic ServerPlugin(String name, String pluginCanonicalWebUrl, PluginUser pluginUser, Path srcJar, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, PluginContentScanner scanner, Path dataDir, ClassLoader classLoader, String metricsPrefix, GerritRuntime gerritRuntime) throws InvalidPluginException - Throws:
- InvalidPluginException
 
 
- 
 - 
Method Detail- 
loadprotected static Class<? extends com.google.inject.Module> load(String name, ClassLoader pluginLoader) throws ClassNotFoundException - Throws:
- ClassNotFoundException
 
 - 
getVersionpublic String getVersion() - Specified by:
- getVersionin class- Plugin
 
 - 
getApiVersionpublic String getApiVersion() - Overrides:
- getApiVersionin class- Plugin
 
 - 
startprotected void start(PluginGuiceEnvironment env) throws Exception 
 - 
stopprotected void stop(PluginGuiceEnvironment env) 
 - 
getSysInjectorpublic com.google.inject.Injector getSysInjector() - Specified by:
- getSysInjectorin class- Plugin
 
 - 
getSshInjectorpublic com.google.inject.Injector getSshInjector() - Specified by:
- getSshInjectorin class- Plugin
 
 - 
getHttpInjectorpublic com.google.inject.Injector getHttpInjector() - Specified by:
- getHttpInjectorin class- Plugin
 
 - 
addpublic void add(RegistrationHandle handle) 
 - 
getContentScannerpublic PluginContentScanner getContentScanner() - Specified by:
- getContentScannerin class- Plugin
 
 
- 
 
-