public class ServerPlugin extends Plugin
Plugin.ApiType, Plugin.CacheKey| Modifier and Type | Field and Description |
|---|---|
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) |
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) |
| 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, toStringprotected Class<? extends com.google.inject.Module> sysModule
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) throws InvalidPluginException
InvalidPluginExceptionpublic 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
InvalidPluginExceptionprotected static Class<? extends com.google.inject.Module> load(String name, ClassLoader pluginLoader) throws ClassNotFoundException
ClassNotFoundExceptionpublic 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(RegistrationHandle handle)
public PluginContentScanner getContentScanner()
getContentScanner in class Plugin