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 Summary
Nested Classes Modifier and Type Class Description static classPlugin.ApiTypestatic classPlugin.CacheKeyUnique key that changes whenever a plugin reloads.
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gerrit.lifecycle.LifecycleManagermanager
-
Constructor Summary
Constructors Constructor Description Plugin(String name, Path srcPath, PluginUser pluginUser, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, Plugin.ApiType apiType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(RegistrationHandle handle)protected abstract booleancanReload()Plugin.ApiTypegetApiType()StringgetApiVersion()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()
-
-
-
Constructor Detail
-
Plugin
public Plugin(String name, Path srcPath, PluginUser pluginUser, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, Plugin.ApiType apiType)
-
-
Method Detail
-
getCleanupHandle
public com.google.gerrit.server.plugins.CleanupHandle getCleanupHandle()
-
setCleanupHandle
public void setCleanupHandle(com.google.gerrit.server.plugins.CleanupHandle cleanupHandle)
-
getSrcFile
public Path getSrcFile()
-
getName
public String getName()
-
getVersion
public abstract String getVersion()
-
getApiType
public Plugin.ApiType getApiType()
-
getApiVersion
public String getApiVersion()
-
getCacheKey
public Plugin.CacheKey getCacheKey()
-
isDisabled
public boolean isDisabled()
-
start
protected abstract void start(PluginGuiceEnvironment env) throws Exception
- Throws:
Exception
-
stop
protected abstract void stop(PluginGuiceEnvironment env)
-
getContentScanner
public abstract PluginContentScanner getContentScanner()
-
getSysInjector
public abstract com.google.inject.Injector getSysInjector()
-
getSshInjector
public abstract com.google.inject.Injector getSshInjector()
-
getHttpInjector
public abstract com.google.inject.Injector getHttpInjector()
-
add
public void add(RegistrationHandle handle)
-
canReload
protected abstract boolean canReload()
-
-