Class RulesDefinition.AbstractContext

  • Direct Known Subclasses:
    RulesDefinition.Context
    Enclosing interface:
    RulesDefinition

    public abstract static class RulesDefinition.AbstractContext
    extends java.lang.Object
    Instantiated by core but not by plugins, except for their tests.
    • Constructor Detail

      • AbstractContext

        public AbstractContext()
    • Method Detail

      • createExternalRepository

        public abstract RulesDefinition.NewRepository createExternalRepository​(java.lang.String engineId,
                                                                               java.lang.String language)
        Creates a repository of rules from external rule engines. The repository key will be "external_[engineId]".
        Since:
        7.2
      • extendedRepositories

        @Deprecated
        public abstract java.util.List<RulesDefinition.ExtendedRepository> extendedRepositories​(java.lang.String repositoryKey)
        Deprecated.
        returns empty list since 5.2. Concept of "extended repository" was misleading and not valuable. Simply declare repositories and use repositories(). See http://jira.sonarsource.com/browse/SONAR-6709
      • extendedRepositories

        @Deprecated
        public abstract java.util.List<RulesDefinition.ExtendedRepository> extendedRepositories()
        Deprecated.
        returns empty list since 5.2. Concept of "extended repository" was misleading and not valuable. Simply declare repositories and use repositories(). See http://jira.sonarsource.com/browse/SONAR-6709
      • setCurrentPluginKey

        public abstract void setCurrentPluginKey​(@Nullable
                                                 java.lang.String pluginKey)