Document the listeners that plugins may implement to receive events Change-Id: Ie3e258d63d18218660eba9da93ce017989a11723 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
diff --git a/Documentation/dev-plugins.txt b/Documentation/dev-plugins.txt index 0ba51c4..b21b78b 100644 --- a/Documentation/dev-plugins.txt +++ b/Documentation/dev-plugins.txt
@@ -255,6 +255,26 @@ to package additional dependencies. Relocating (or renaming) classes should not be necessary due to the ClassLoader isolation. +[[events]] +Listening to Events +------------------- + +Certain operations in Gerrit trigger events. Plugins may receive +notifications of these events by implementing the corresponding +listeners. + +* `com.google.gerrit.extensions.events.LifecycleListener`: ++ +Gerrit server startup and shutdown + +* `com.google.gerrit.extensions.events.NewProjectCreatedListener`: ++ +Project creation + +* `com.google.gerrit.extensions.events.ProjectDeletedListener`: ++ +Project deletion + [[ssh]] SSH Commands ------------