Groups: Add reminder to prefer GroupCache if possible

Change-Id: I16c7731f3cc9965fb7e4a10355380ac67664fcf9
This commit is contained in:
Dave Borowitz
2017-11-10 11:06:12 -05:00
parent 93e1eec48a
commit 08fb518da8

View File

@@ -55,6 +55,9 @@ import org.slf4j.LoggerFactory;
* directly. There are a few exceptions though: schema classes, wrapper classes, and classes * directly. There are a few exceptions though: schema classes, wrapper classes, and classes
* executed during init. The latter ones should use {@code GroupsOnInit} instead. * executed during init. The latter ones should use {@code GroupsOnInit} instead.
* *
* <p>Most callers should not need to read groups directly from the database; they should use the
* {@link com.google.gerrit.server.account.GroupCache GroupCache} instead.
*
* <p>If not explicitly stated, all methods of this class refer to <em>internal</em> groups. * <p>If not explicitly stated, all methods of this class refer to <em>internal</em> groups.
*/ */
@Singleton @Singleton