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 class
Plugin.ApiType
static class
Plugin.CacheKey
Unique key that changes whenever a plugin reloads.
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gerrit.lifecycle.LifecycleManager
manager
-
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 void
add(RegistrationHandle handle)
protected abstract boolean
canReload()
Plugin.ApiType
getApiType()
String
getApiVersion()
Plugin.CacheKey
getCacheKey()
com.google.gerrit.server.plugins.CleanupHandle
getCleanupHandle()
abstract PluginContentScanner
getContentScanner()
abstract com.google.inject.Injector
getHttpInjector()
String
getName()
Path
getSrcFile()
abstract com.google.inject.Injector
getSshInjector()
abstract com.google.inject.Injector
getSysInjector()
abstract String
getVersion()
boolean
isDisabled()
void
setCleanupHandle(com.google.gerrit.server.plugins.CleanupHandle cleanupHandle)
protected abstract void
start(PluginGuiceEnvironment env)
protected abstract void
stop(PluginGuiceEnvironment env)
String
toString()
-
-
-
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()
-
-