in src/main/java/com/ericsson/gerrit/plugins/highavailability/Configuration.java [93:115]
public Configuration(Config cfg, SitePaths site) {
main = new Main(site, cfg);
autoReindex = new AutoReindex(cfg);
peerInfo = new PeerInfo(cfg);
switch (peerInfo.strategy()) {
case STATIC:
peerInfoStatic = new PeerInfoStatic(cfg);
break;
case JGROUPS:
peerInfoJGroups = new PeerInfoJGroups(cfg);
break;
default:
throw new IllegalArgumentException("Not supported strategy: " + peerInfo.strategy);
}
jgroups = new JGroups(site, cfg);
http = new Http(cfg);
cache = new Cache(cfg);
event = new Event(cfg);
index = new Index(cfg);
websession = new Websession(cfg);
healthCheck = new HealthCheck(cfg);
sharedRefDb = new SharedRefDbConfiguration(cfg, PLUGIN_NAME);
}