The repository-statistics module has direct references to the store implementations. I would like to decouple the statistics api from the implementation.
- Create new metadata-statistics-api module where the interfaces and statistic POJO reside.
- Add a new RepositoryStatisticsProvider interface that can be implemented by MedadataRepository and is for populating the statistic data. Can be implemented by the MetadataRepository and is statistic generation is delegated to this implementation if it exists.
With this, we can remove the dependencies to the store specific APIs like JCR.