zooKeeperConnection = application.adminContext().getBean(ZooKeeperConnection.class);
moduleDeployer = application.containerContext().getBean(ModuleDeployer.class);
}
public final void addModuleRegistry(ModuleRegistry moduleRegistry) {
DelegatingModuleRegistry cmr1 = application.pluginContext().getBean(DelegatingModuleRegistry.class);
cmr1.addDelegate(moduleRegistry);
DelegatingModuleRegistry cmr2 = application.adminContext().getBean(DelegatingModuleRegistry.class);
if (cmr1 != cmr2) {
cmr2.addDelegate(moduleRegistry);
}
}