Class AggregatorProvider
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.impl.AggregatorProvider
-
public class AggregatorProvider extends Object
List of configured aggregators that selects one given a repository node.
-
-
Constructor Summary
Constructors Constructor Description AggregatorProvider(List<Aggregator> aggregators)
Constructs a new aggregator provider with a given aggregator list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(DumpContext ctx, boolean isLast)
Aggregator
getAggregator(Node node, String path)
Selects an aggregator that can handle the given node.List<Aggregator>
getAggregators()
Returns the list of aggregators
-
-
-
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 matchpath
- 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)
-
-