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 String
protected 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 TypeMethodDescriptionvoid
add
(RegistrationHandle handle) protected boolean
com.google.inject.Injector
Optional<com.google.inject.Module>
com.google.inject.Injector
com.google.inject.Injector
com.google.inject.Injector
protected static Class<? extends com.google.inject.Module>
load
(String name, ClassLoader pluginLoader) protected void
protected void
Methods 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:
getVersion
in classPlugin
-
getApiVersion
- Overrides:
getApiVersion
in classPlugin
-
canReload
protected boolean canReload() -
start
-
stop
-
getSysInjector
public com.google.inject.Injector getSysInjector()- Specified by:
getSysInjector
in classPlugin
-
getApiInjector
public com.google.inject.Injector getApiInjector()- Specified by:
getApiInjector
in classPlugin
-
getApiModule
- Overrides:
getApiModule
in classPlugin
-
getSshInjector
public com.google.inject.Injector getSshInjector()- Specified by:
getSshInjector
in classPlugin
-
getHttpInjector
public com.google.inject.Injector getHttpInjector()- Specified by:
getHttpInjector
in classPlugin
-
add
-
getContentScanner
- Specified by:
getContentScanner
in classPlugin
-