From 9820266f54fea37788a4824d6ab0d3e78343f6cc Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Wed, 18 Sep 2013 16:03:03 +0200 Subject: [PATCH] Document the listeners that plugins may implement to receive events Change-Id: Ie3e258d63d18218660eba9da93ce017989a11723 Signed-off-by: Edwin Kempin --- Documentation/dev-plugins.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/dev-plugins.txt b/Documentation/dev-plugins.txt index 0ba51c49bd..b21b78bf0f 100644 --- a/Documentation/dev-plugins.txt +++ b/Documentation/dev-plugins.txt @@ -255,6 +255,26 @@ link:http://maven.apache.org/plugins/maven-shade-plugin/[shade plugin] 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 ------------