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 LifecycleManager |
manager |
Constructor and Description |
---|
Plugin(String name,
File srcFile,
PluginUser pluginUser,
org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot,
Plugin.ApiType apiType) |
Modifier and Type | Method and Description |
---|---|
void |
add(com.google.gerrit.extensions.registration.RegistrationHandle handle) |
Plugin.ApiType |
getApiType() |
Plugin.CacheKey |
getCacheKey() |
com.google.gerrit.server.plugins.CleanupHandle |
getCleanupHandle() |
abstract PluginContentScanner |
getContentScanner() |
abstract com.google.inject.Injector |
getHttpInjector() |
String |
getName() |
File |
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) |
String |
toString() |
protected LifecycleManager manager
public Plugin(String name, File srcFile, 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 File getSrcFile()
public String getName()
public abstract String getVersion()
public Plugin.ApiType getApiType()
public Plugin.CacheKey getCacheKey()
public boolean isDisabled()
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(com.google.gerrit.extensions.registration.RegistrationHandle handle)