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.
        Parameters:
        aggregators - the list of aggregators.
    • Method Detail

      • getAggregators

        public List<Aggregator> getAggregators()
        Returns the list of aggregators
        Returns:
        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.
        Parameters:
        node - the node to match
        path - the path to match
        Returns:
        an aggregator that handles the node or null if not found.
        Throws:
        RepositoryException - if a repository error occurs
      • dump

        public void dump​(DumpContext ctx,
                         boolean isLast)