Package com.google.gerrit.server.plugins
Class ServerPlugin
java.lang.Object
com.google.gerrit.server.plugins.Plugin
com.google.gerrit.server.plugins.ServerPlugin
- Direct Known Subclasses:
TestServerPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.server.plugins.Plugin
Plugin.ApiType, Plugin.CacheKey -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Class<? extends com.google.inject.Module> protected Class<? extends com.google.inject.Module> protected Class<? extends com.google.inject.Module> protected Class<? extends com.google.inject.Module> Fields inherited from class com.google.gerrit.server.plugins.Plugin
manager, reloadableHandles -
Constructor Summary
ConstructorsConstructorDescriptionServerPlugin(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) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(RegistrationHandle handle) protected booleancom.google.inject.InjectorOptional<com.google.inject.Module> com.google.inject.Injectorcom.google.inject.Injectorcom.google.inject.Injectorprotected static Class<? extends com.google.inject.Module> load(String name, ClassLoader pluginLoader) protected voidprotected voidMethods inherited from class com.google.gerrit.server.plugins.Plugin
getApiType, getCacheKey, getCleanupHandle, getName, getSrcFile, isDisabled, setCleanupHandle, toString
-
Field Details
-
API_MODULE
- See Also:
-
sysModule
-
batchModule
-
sshModule
-
httpModule
-
-
Constructor Details
-
ServerPlugin
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 - Throws:
InvalidPluginException
-
-
Method Details
-
load
protected static Class<? extends com.google.inject.Module> load(String name, ClassLoader pluginLoader) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getVersion
- Specified by:
getVersionin classPlugin
-
getApiVersion
- Overrides:
getApiVersionin classPlugin
-
canReload
protected boolean canReload() -
start
-
stop
-
getSysInjector
public com.google.inject.Injector getSysInjector()- Specified by:
getSysInjectorin classPlugin
-
getApiInjector
public com.google.inject.Injector getApiInjector()- Specified by:
getApiInjectorin classPlugin
-
getApiModule
- Overrides:
getApiModulein classPlugin
-
getSshInjector
public com.google.inject.Injector getSshInjector()- Specified by:
getSshInjectorin classPlugin
-
getHttpInjector
public com.google.inject.Injector getHttpInjector()- Specified by:
getHttpInjectorin classPlugin
-
add
-
getContentScanner
- Specified by:
getContentScannerin classPlugin
-