public abstract class Plugin extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Plugin.ApiType |
static class |
Plugin.CacheKey
Unique key that changes whenever a plugin reloads.
|
Modifier and Type | Field and Description |
---|---|
protected com.google.gerrit.lifecycle.LifecycleManager |
manager |
Constructor and Description |
---|
Plugin(String name,
Path srcPath,
PluginUser pluginUser,
org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot,
Plugin.ApiType apiType) |
Modifier and Type | Method and Description |
---|---|
void |
add(RegistrationHandle handle) |
protected abstract boolean |
canReload() |
Plugin.ApiType |
getApiType() |
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() |
public Plugin(String name, Path srcPath, PluginUser pluginUser, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, Plugin.ApiType apiType)
public com.google.gerrit.server.plugins.CleanupHandle getCleanupHandle()
public void setCleanupHandle(com.google.gerrit.server.plugins.CleanupHandle cleanupHandle)
public Path getSrcFile()
public String getName()
public abstract String getVersion()
public Plugin.ApiType getApiType()
public Plugin.CacheKey getCacheKey()
public boolean isDisabled()
protected abstract void start(PluginGuiceEnvironment env) throws Exception
Exception
protected abstract void stop(PluginGuiceEnvironment env)
public abstract PluginContentScanner getContentScanner()
public abstract com.google.inject.Injector getSysInjector()
public abstract com.google.inject.Injector getSshInjector()
public abstract com.google.inject.Injector getHttpInjector()
public void add(RegistrationHandle handle)
protected abstract boolean canReload()