gerrit/gerrit-pgm/src/main/java/com/google/gerrit/pgm
Jacek Centkowski b6e94a00a0 Introduce mechanism to overload Gerrit core modules
CacheImpl [1] introduced the possibility to overload core Gerrit
module with one that is provided by library. This change
generalizes it so that any Gerrit core module can be overloaded.

How to overload Gerrit core module:
* identify module that needs to be overloaded and mark it with
@ModuleImpl(name="moduleX") annotation; note that circular dependencies
from different module qualifies particular instance as non-candidate
* build lib module that provides alternative implementation
to the module in question and mark it with the same
annotation
* place implementation jar under GERRIT_SITE/lib dir and add
gerrit.installModule entry with your.package.Module path to
gerrit.config.

[1] https://gerrit-review.googlesource.com/c/gerrit/+/173162

Change-Id: Ic6dac8d1cc558abdcfd7a1cc257dbd7f8924ff9b
Signed-off-by: Jacek Centkowski <jcentkowski@collab.net>
2018-05-14 13:09:55 +09:00
..
http/jetty CommandExecutorQueueProvider: Fix singleton binding 2018-04-27 17:02:30 +09:00
init InitIndex: Allow to configure index.maxLimit for Elasticsearch 2018-04-10 23:44:49 +09:00
rules Replace FileInputStream and FileOutputStream with static Files methods 2017-05-10 00:10:52 +00:00
util Move default memory cache implementation out of H2 package 2018-05-14 13:09:55 +09:00
Cat.java Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
Daemon.java Introduce mechanism to overload Gerrit core modules 2018-05-14 13:09:55 +09:00
Gsql.java Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
Init.java Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
JythonShell.java JythonShell: Add missing type arguments for generic class Class<T> 2017-03-16 15:33:28 +09:00
LocalUsernamesToLowerCase.java ExternalIds NoteDb migration: Avoid intermediate migration state 2018-03-07 21:35:20 +01:00
Ls.java Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
MigrateAccountPatchReviewDb.java Extend MigrateAccountPatchReviewDb summary with stats 2017-12-05 14:01:59 +01:00
Passwd.java Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
PrologShell.java Squash redundant string concatenations introduced by google-java-format 2017-02-17 08:57:46 +09:00
ProtoGen.java Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
ProtobufImport.java Replace FileInputStream and FileOutputStream with static Files methods 2017-05-10 00:10:52 +00:00
RebuildNoteDb.java Don't leak ObjectReaders created from ObjectInserters 2017-04-03 12:02:15 -04:00
Reindex.java Disable auto-reindexing if stale during online reindex 2017-06-24 01:10:41 +00:00
Rulec.java Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
SetPasswd.java Gerrit command line utility to set/update secure.config 2017-01-12 00:25:25 +00:00
SwitchSecureStore.java Format all Java files with google-java-format 2017-02-07 10:04:39 +09:00
Version.java pgm: Move non commands into a util package 2009-11-18 20:00:40 -08:00
WarDistribution.java WarDistribution: Don't bail out when scanning corrupted jar file 2017-04-11 18:49:02 +09:00