Class AggregatorProvider

  • public class AggregatorProvider
    extends Object
    List of configured aggregators that selects one given a repository node.
    • Constructor Detail

      • AggregatorProvider

        public AggregatorProvider​(List<Aggregator> aggregators)
        Constructs a new aggregator provider with a given aggregator list.
        aggregators - the list of aggregators.
    • Method Detail

      • getAggregators

        public List<Aggregator> getAggregators()
        Returns the list of aggregators
        the list of aggregators
      • getAggregator

        public Aggregator getAggregator​(Node node,
                                        String path)
                                 throws RepositoryException
        Selects an aggregator that can handle the given node. If no aggregator can be found, null is returned. Although this is a very rare case because there should always be a default, catch-all aggregator.
        node - the node to match
        path - the path to match
        an aggregator that handles the node or null if not found.
        RepositoryException - if a repository error occurs
      • dump

        public void dump​(DumpContext ctx,
                         boolean isLast)