Class SimpleRuleStore

  • All Implemented Interfaces:
    RuleStore, ContextAware

    @Deprecated(since="2022-01-27")
    public class SimpleRuleStore
    extends ContextAwareBase
    implements RuleStore
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    This class implements the RuleStore interface. It is the rule store implementation used by default in Joran.
    • Constructor Detail

      • SimpleRuleStore

        public SimpleRuleStore​(Context context)
        Deprecated.
    • Method Detail

      • addRule

        public void addRule​(ElementSelector elementSelector,
                            Action action)
        Deprecated.
        Add a new rule, i.e. a pattern, action pair to the rule store.

        Note that the added action's LoggerRepository will be set in the process.

        Specified by:
        addRule in interface RuleStore
      • addRule

        public void addRule​(ElementSelector elementSelector,
                            java.lang.String actionClassName)
        Deprecated.
        Description copied from interface: RuleStore
        Add a new rule, given by a pattern and a action class (String).
        Specified by:
        addRule in interface RuleStore
      • matchActions

        public java.util.List<Action> matchActions​(ElementPath elementPath)
        Deprecated.
        Description copied from interface: RuleStore
        Return a list of actions matching a pattern.
        Specified by:
        matchActions in interface RuleStore
        Parameters:
        elementPath - the path to match for
        Returns:
        list of matching actions
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object