diff options
author | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-10-21 14:42:32 +0200 |
---|---|---|
committer | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-10-21 14:42:32 +0200 |
commit | cb38dbbbc6f50f8a7a12adaf0afc42fe2c089599 (patch) | |
tree | d0fc0cc3b27a6fb233b89eb1cf0e6d8c25b113a3 /archiva-modules/archiva-base/archiva-mock | |
parent | 2c12980a3a0a893375f89cd1ac60b8051483a377 (diff) | |
download | archiva-cb38dbbbc6f50f8a7a12adaf0afc42fe2c089599.tar.gz archiva-cb38dbbbc6f50f8a7a12adaf0afc42fe2c089599.zip |
Changing the initialization behaviour of metadata repo factory
Diffstat (limited to 'archiva-modules/archiva-base/archiva-mock')
-rw-r--r-- | archiva-modules/archiva-base/archiva-mock/src/main/java/org/apache/archiva/mock/MockRepositorySessionFactory.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/archiva-modules/archiva-base/archiva-mock/src/main/java/org/apache/archiva/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-base/archiva-mock/src/main/java/org/apache/archiva/mock/MockRepositorySessionFactory.java index d293d5247..3f17ceb23 100644 --- a/archiva-modules/archiva-base/archiva-mock/src/main/java/org/apache/archiva/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-base/archiva-mock/src/main/java/org/apache/archiva/mock/MockRepositorySessionFactory.java @@ -19,18 +19,14 @@ package org.apache.archiva.mock; * under the License. */ -import org.apache.archiva.metadata.repository.AbstractMetadataRepository; -import org.apache.archiva.metadata.repository.MetadataRepository; -import org.apache.archiva.metadata.repository.MetadataResolver; -import org.apache.archiva.metadata.repository.RepositorySession; -import org.apache.archiva.metadata.repository.RepositorySessionFactory; +import org.apache.archiva.metadata.repository.*; import org.springframework.stereotype.Service; /** * @author Olivier Lamy */ @Service( "repositorySessionFactory#mock" ) -public class MockRepositorySessionFactory +public class MockRepositorySessionFactory extends AbstractRepositorySessionFactory implements RepositorySessionFactory { private MetadataRepository repository = new AbstractMetadataRepository() @@ -75,8 +71,14 @@ public class MockRepositorySessionFactory } @Override - public void close() - { - // no op + protected void initialize() { + // noop + } + + @Override + protected void shutdown() { + // noop } + + } |