Package com.google.gerrit.server.plugins
Class Plugin
- java.lang.Object
- 
- com.google.gerrit.server.plugins.Plugin
 
- 
- Direct Known Subclasses:
- ServerPlugin
 
 public abstract class Plugin extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPlugin.ApiTypestatic classPlugin.CacheKeyUnique key that changes whenever a plugin reloads.
 - 
Field SummaryFields Modifier and Type Field Description protected LifecycleManagermanager
 - 
Constructor SummaryConstructors Constructor Description Plugin(String name, Path srcPath, PluginUser pluginUser, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, Plugin.ApiType apiType)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(RegistrationHandle handle)protected abstract booleancanReload()Plugin.ApiTypegetApiType()Plugin.CacheKeygetCacheKey()com.google.gerrit.server.plugins.CleanupHandlegetCleanupHandle()abstract PluginContentScannergetContentScanner()abstract com.google.inject.InjectorgetHttpInjector()StringgetName()PathgetSrcFile()abstract com.google.inject.InjectorgetSshInjector()abstract com.google.inject.InjectorgetSysInjector()abstract StringgetVersion()booleanisDisabled()voidsetCleanupHandle(com.google.gerrit.server.plugins.CleanupHandle cleanupHandle)protected abstract voidstart(PluginGuiceEnvironment env)protected abstract voidstop(PluginGuiceEnvironment env)StringtoString()
 
- 
- 
- 
Field Detail- 
managerprotected LifecycleManager manager 
 
- 
 - 
Constructor Detail- 
Pluginpublic Plugin(String name, Path srcPath, PluginUser pluginUser, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, Plugin.ApiType apiType) 
 
- 
 - 
Method Detail- 
getCleanupHandlepublic com.google.gerrit.server.plugins.CleanupHandle getCleanupHandle() 
 - 
setCleanupHandlepublic void setCleanupHandle(com.google.gerrit.server.plugins.CleanupHandle cleanupHandle) 
 - 
getSrcFilepublic Path getSrcFile() 
 - 
getNamepublic String getName() 
 - 
getVersionpublic abstract String getVersion() 
 - 
getApiTypepublic Plugin.ApiType getApiType() 
 - 
getCacheKeypublic Plugin.CacheKey getCacheKey() 
 - 
isDisabledpublic boolean isDisabled() 
 - 
startprotected abstract void start(PluginGuiceEnvironment env) throws Exception - Throws:
- Exception
 
 - 
stopprotected abstract void stop(PluginGuiceEnvironment env) 
 - 
getContentScannerpublic abstract PluginContentScanner getContentScanner() 
 - 
getSysInjectorpublic abstract com.google.inject.Injector getSysInjector() 
 - 
getSshInjectorpublic abstract com.google.inject.Injector getSshInjector() 
 - 
getHttpInjectorpublic abstract com.google.inject.Injector getHttpInjector() 
 - 
addpublic void add(RegistrationHandle handle) 
 - 
canReloadprotected abstract boolean canReload() 
 
- 
 
-