aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/repository-statistics
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-08-18 20:56:46 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-08-18 20:56:46 +0200
commit6cf4073a9e73b6517c51dc22db75fd97d2523695 (patch)
treef969c1eee474fd298092ec8cbf087c5d8f3e0e90 /archiva-modules/plugins/repository-statistics
parent118604a706f1fd66bcda450c1ac8370eff60e4cf (diff)
downloadarchiva-6cf4073a9e73b6517c51dc22db75fd97d2523695.tar.gz
archiva-6cf4073a9e73b6517c51dc22db75fd97d2523695.zip
Changing facet factories. Adding stream methods to metadata repository.
Diffstat (limited to 'archiva-modules/plugins/repository-statistics')
-rw-r--r--archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsFactory.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsFactory.java b/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsFactory.java
index ceb911803..beae25dee 100644
--- a/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsFactory.java
+++ b/archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsFactory.java
@@ -19,9 +19,9 @@ package org.apache.archiva.metadata.repository.stats;
* under the License.
*/
-import org.apache.archiva.metadata.model.MetadataFacet;
-import org.apache.archiva.metadata.model.MetadataFacetFactory;
+import org.apache.archiva.metadata.model.facets.AbstractMetadataFacetFactory;
import org.apache.archiva.metadata.repository.stats.model.DefaultRepositoryStatistics;
+import org.apache.archiva.metadata.repository.stats.model.RepositoryStatistics;
import org.springframework.stereotype.Service;
/**
@@ -29,16 +29,21 @@ import org.springframework.stereotype.Service;
*/
@Service( "metadataFacetFactory#org.apache.archiva.metadata.repository.stats" )
public class RepositoryStatisticsFactory
- implements MetadataFacetFactory
+ extends AbstractMetadataFacetFactory<RepositoryStatistics>
{
+ protected RepositoryStatisticsFactory( )
+ {
+ super( RepositoryStatistics.class );
+ }
+
@Override
- public MetadataFacet createMetadataFacet()
+ public RepositoryStatistics createMetadataFacet()
{
return new DefaultRepositoryStatistics();
}
@Override
- public MetadataFacet createMetadataFacet( String repositoryId, String name )
+ public RepositoryStatistics createMetadataFacet( String repositoryId, String name )
{
return new DefaultRepositoryStatistics();
}