public class ServerPlugin extends Plugin
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerPlugin.CacheKey
Unique key that changes whenever a plugin reloads.
|
Plugin.ApiType| Constructor and Description |
|---|
ServerPlugin(String name,
String pluginCanonicalWebUrl,
PluginUser pluginUser,
Path srcJar,
org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot,
PluginContentScanner scanner,
Path dataDir,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gerrit.extensions.registration.RegistrationHandle handle) |
protected boolean |
canReload() |
PluginContentScanner |
getContentScanner() |
com.google.inject.Injector |
getHttpInjector() |
com.google.inject.Injector |
getSshInjector() |
com.google.inject.Injector |
getSysInjector() |
String |
getVersion() |
protected void |
start(PluginGuiceEnvironment env) |
protected void |
stop(PluginGuiceEnvironment env) |
getApiType, getCacheKey, getCleanupHandle, getName, getSrcFile, isDisabled, setCleanupHandle, toStringpublic ServerPlugin(String name, String pluginCanonicalWebUrl, PluginUser pluginUser, Path srcJar, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, PluginContentScanner scanner, Path dataDir, ClassLoader classLoader) throws InvalidPluginException
InvalidPluginExceptionpublic String getVersion()
getVersion in class Pluginprotected void start(PluginGuiceEnvironment env) throws Exception
protected void stop(PluginGuiceEnvironment env)
public com.google.inject.Injector getSysInjector()
getSysInjector in class Pluginpublic com.google.inject.Injector getSshInjector()
getSshInjector in class Pluginpublic com.google.inject.Injector getHttpInjector()
getHttpInjector in class Pluginpublic void add(com.google.gerrit.extensions.registration.RegistrationHandle handle)
public PluginContentScanner getContentScanner()
getContentScanner in class Plugin