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
- 
Nested Class SummaryNested classes/interfaces inherited from class com.google.gerrit.server.plugins.PluginPlugin.ApiType, Plugin.CacheKey
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringprotected Class<? extends com.google.inject.Module> protected Class<? extends com.google.inject.Module> protected Class<? extends com.google.inject.Module> protected Class<? extends com.google.inject.Module> Fields inherited from class com.google.gerrit.server.plugins.Pluginmanager, reloadableHandles
- 
Constructor SummaryConstructorsConstructorDescriptionServerPlugin(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 SummaryModifier and TypeMethodDescriptionvoidadd(RegistrationHandle handle) protected booleancom.google.inject.InjectorOptional<com.google.inject.Module> com.google.inject.Injectorcom.google.inject.Injectorcom.google.inject.Injectorprotected static Class<? extends com.google.inject.Module> load(String name, ClassLoader pluginLoader) protected voidprotected voidMethods inherited from class com.google.gerrit.server.plugins.PlugingetApiType, getCacheKey, getCleanupHandle, getName, getSrcFile, isDisabled, setCleanupHandle, toString
- 
Field Details- 
API_MODULE- See Also:
 
- 
sysModule
- 
batchModule
- 
sshModule
- 
httpModule
 
- 
- 
Constructor Details- 
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 Details- 
loadprotected static Class<? extends com.google.inject.Module> load(String name, ClassLoader pluginLoader) throws ClassNotFoundException - Throws:
- ClassNotFoundException
 
- 
getVersion- Specified by:
- getVersionin class- Plugin
 
- 
getApiVersion- Overrides:
- getApiVersionin class- Plugin
 
- 
canReloadprotected boolean canReload()
- 
start
- 
stop
- 
getSysInjectorpublic com.google.inject.Injector getSysInjector()- Specified by:
- getSysInjectorin class- Plugin
 
- 
getApiInjectorpublic com.google.inject.Injector getApiInjector()- Specified by:
- getApiInjectorin class- Plugin
 
- 
getApiModule- Overrides:
- getApiModulein class- Plugin
 
- 
getSshInjectorpublic com.google.inject.Injector getSshInjector()- Specified by:
- getSshInjectorin class- Plugin
 
- 
getHttpInjectorpublic com.google.inject.Injector getHttpInjector()- Specified by:
- getHttpInjectorin class- Plugin
 
- 
add
- 
getContentScanner- Specified by:
- getContentScannerin class- Plugin
 
 
-