Class AggregatorProvider
java.lang.Object
org.apache.jackrabbit.vault.fs.impl.AggregatorProvider
List of configured aggregators that selects one given a repository node.
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatorProvider(List<Aggregator> aggregators) Constructs a new aggregator provider with a given aggregator list. -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(DumpContext ctx, boolean isLast) getAggregator(Node node, String path) Selects an aggregator that can handle the given node.Returns the list of aggregators
-
Constructor Details
-
AggregatorProvider
Constructs a new aggregator provider with a given aggregator list.- Parameters:
aggregators- the list of aggregators.
-
-
Method Details
-
getAggregators
Returns the list of aggregators- Returns:
- the list of aggregators
-
getAggregator
Selects an aggregator that can handle the given node. If no aggregator can be found,nullis returned. Although this is a very rare case because there should always be a default, catch-all aggregator.- Parameters:
node- the node to matchpath- the path to match- Returns:
- an aggregator that handles the node or
nullif not found. - Throws:
RepositoryException- if a repository error occurs
-
dump
-