public class ServerPlugin extends Plugin
Plugin.ApiType, Plugin.CacheKey
Modifier and Type | Field and Description |
---|---|
protected Class<? extends com.google.inject.Module> |
batchModule |
protected Class<? extends com.google.inject.Module> |
httpModule |
protected Class<? extends com.google.inject.Module> |
sshModule |
protected Class<? extends com.google.inject.Module> |
sysModule |
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,
String metricsPrefix,
GerritRuntime gerritRuntime) |
Modifier and Type | Method and Description |
---|---|
void |
add(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 static Class<? extends com.google.inject.Module> |
load(String name,
ClassLoader pluginLoader) |
protected void |
start(PluginGuiceEnvironment env) |
protected void |
stop(PluginGuiceEnvironment env) |
getApiType, getCacheKey, getCleanupHandle, getName, getSrcFile, isDisabled, setCleanupHandle, toString
protected Class<? extends com.google.inject.Module> sysModule
protected Class<? extends com.google.inject.Module> batchModule
protected Class<? extends com.google.inject.Module> sshModule
protected Class<? extends com.google.inject.Module> httpModule
public ServerPlugin(String name, String pluginCanonicalWebUrl, PluginUser pluginUser, Path srcJar, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, PluginContentScanner scanner, Path dataDir, ClassLoader classLoader, String metricsPrefix, GerritRuntime gerritRuntime) throws InvalidPluginException
InvalidPluginException
protected static Class<? extends com.google.inject.Module> load(String name, ClassLoader pluginLoader) throws ClassNotFoundException
ClassNotFoundException
public String getVersion()
getVersion
in class Plugin
protected void start(PluginGuiceEnvironment env) throws Exception
protected void stop(PluginGuiceEnvironment env)
public com.google.inject.Injector getSysInjector()
getSysInjector
in class Plugin
public com.google.inject.Injector getSshInjector()
getSshInjector
in class Plugin
public com.google.inject.Injector getHttpInjector()
getHttpInjector
in class Plugin
public void add(RegistrationHandle handle)
public PluginContentScanner getContentScanner()
getContentScanner
in class Plugin