Merge "Document the listeners that plugins may implement to receive events"

This commit is contained in:
David Pursehouse
2013-09-19 00:41:43 +00:00
committed by Gerrit Code Review

View File

@@ -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
------------