Declare GroupBackend to be @ExtensionPoint

This is necessary to support auto-registration within plugins.

Change-Id: I3cc13d83462debd45aacc45ec286061ee1d8c554
This commit is contained in:
Shawn O. Pearce
2012-06-02 11:23:49 -07:00
parent 5660a19d05
commit 1b831e78a1

View File

@@ -16,6 +16,7 @@ package com.google.gerrit.server.account;
import com.google.gerrit.common.data.GroupDescription;
import com.google.gerrit.common.data.GroupReference;
import com.google.gerrit.extensions.annotations.ExtensionPoint;
import com.google.gerrit.reviewdb.client.AccountGroup;
import com.google.gerrit.server.IdentifiedUser;
@@ -27,6 +28,7 @@ import javax.annotation.Nullable;
* Implementations of GroupBackend provide lookup and membership accessors
* to a group system.
*/
@ExtensionPoint
public interface GroupBackend {
/** @return {@code true} if the backend can operate on the UUID. */
boolean handles(AccountGroup.UUID uuid);