public MirrorRepositoryHook(
      GitScm gitScm,
      I18nService i18nService,
      ScheduledExecutorService executor,
      PasswordEncryptor passwordEncryptor,
      SettingsReflectionHelper settingsReflectionHelper,
      PluginSettingsFactory pluginSettingsFactory,
      RepositoryMetadataService repositoryMetadataService) {
    logger.debug("MirrorRepositoryHook: init started");

    // Set fields
    this.gitScm = gitScm;
    this.i18nService = i18nService;
    this.executor = executor;
    this.passwordEncryptor = passwordEncryptor;
    this.settingsReflectionHelper = settingsReflectionHelper;
    this.repositoryMetadataService = repositoryMetadataService;

    // Init password encryptor
    PluginSettings pluginSettings = pluginSettingsFactory.createSettingsForKey(PLUGIN_SETTINGS_KEY);
    passwordEncryptor.init(pluginSettings);

    logger.debug("MirrorRepositoryHook: init completed");
  }
 public LeaderboardService(PullRequestService pullRequestService, PluginSettingsFactory factory) {
   this.pullRequestService = pullRequestService;
   this.pluginSettings = factory.createSettingsForKey(PLUGIN_KEY);
 }
 private PluginSettings getPluginSettings() {
   // never cache our plugin settings
   return new NamespacedPluginSettings(pluginSettingsFactory.createGlobalSettings(), KEY_PREFIX);
 }
 public SamlPluginSettings(I18nResolver i18n, PluginSettingsFactory pluginSettingsFactory) {
   this.i18n = i18n;
   this.pluginSettings = pluginSettingsFactory.createGlobalSettings();
   update();
 }