1 package org.apache.archiva.metadata.repository;
3 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Configurable;
4 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
5 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable;
6 import org.springframework.stereotype.Service;
9 * Licensed to the Apache Software Foundation (ASF) under one
10 * or more contributor license agreements. See the NOTICE file
11 * distributed with this work for additional information
12 * regarding copyright ownership. The ASF licenses this file
13 * to you under the Apache License, Version 2.0 (the
14 * "License"); you may not use this file except in compliance
15 * with the License. You may obtain a copy of the License at
17 * http://www.apache.org/licenses/LICENSE-2.0
19 * Unless required by applicable law or agreed to in writing,
20 * software distributed under the License is distributed on an
21 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22 * KIND, either express or implied. See the License for the
23 * specific language governing permissions and limitations
26 @Service("repositorySessionFactory#test")
27 public class TestRepositorySessionFactory
28 implements RepositorySessionFactory
30 private MetadataResolver resolver;
32 public RepositorySession createSession()
34 return new RepositorySession( new TestMetadataRepository(), resolver );
37 public void setResolver( MetadataResolver resolver )
39 Configurable configurable;
41 this.resolver = resolver;