Package com.google.gerrit.server.plugins
Class Plugin
java.lang.Object
com.google.gerrit.server.plugins.Plugin
- Direct Known Subclasses:
ServerPlugin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static final class
Unique key that changes whenever a plugin reloads. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.gerrit.lifecycle.LifecycleManager
protected List<ReloadableRegistrationHandle<?>>
-
Constructor Summary
ConstructorsConstructorDescriptionPlugin
(String name, Path srcPath, PluginUser pluginUser, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, Plugin.ApiType apiType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(RegistrationHandle handle) protected abstract boolean
abstract com.google.inject.Injector
Optional<com.google.inject.Module>
com.google.gerrit.server.plugins.CleanupHandle
abstract PluginContentScanner
abstract com.google.inject.Injector
getName()
abstract com.google.inject.Injector
abstract com.google.inject.Injector
abstract String
boolean
void
setCleanupHandle
(com.google.gerrit.server.plugins.CleanupHandle cleanupHandle) protected abstract void
protected abstract void
toString()
-
Field Details
-
manager
protected com.google.gerrit.lifecycle.LifecycleManager manager -
reloadableHandles
-
-
Constructor Details
-
Plugin
public Plugin(String name, Path srcPath, PluginUser pluginUser, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, Plugin.ApiType apiType)
-
-
Method Details
-
getCleanupHandle
public com.google.gerrit.server.plugins.CleanupHandle getCleanupHandle() -
setCleanupHandle
public void setCleanupHandle(com.google.gerrit.server.plugins.CleanupHandle cleanupHandle) -
getSrcFile
-
getName
-
getVersion
-
getApiType
-
getApiVersion
-
getCacheKey
-
isDisabled
public boolean isDisabled() -
start
- Throws:
Exception
-
stop
-
getContentScanner
-
getSysInjector
public abstract com.google.inject.Injector getSysInjector() -
getSshInjector
public abstract com.google.inject.Injector getSshInjector() -
getHttpInjector
public abstract com.google.inject.Injector getHttpInjector() -
getApiInjector
public abstract com.google.inject.Injector getApiInjector() -
add
-
toString
-
canReload
protected abstract boolean canReload() -
getApiModule
-