1 package org.apache.archiva.configuration;
3 import org.apache.archiva.redback.components.registry.RegistryException;
4 import org.apache.archiva.redback.components.registry.RegistryListener;
5 import org.springframework.stereotype.Service;
8 * Licensed to the Apache Software Foundation (ASF) under one
9 * or more contributor license agreements. See the NOTICE file
10 * distributed with this work for additional information
11 * regarding copyright ownership. The ASF licenses this file
12 * to you under the Apache License, Version 2.0 (the
13 * "License"); you may not use this file except in compliance
14 * with the License. You may obtain a copy of the License at
16 * http://www.apache.org/licenses/LICENSE-2.0
18 * Unless required by applicable law or agreed to in writing,
19 * software distributed under the License is distributed on an
20 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 * KIND, either express or implied. See the License for the
22 * specific language governing permissions and limitations
26 @Service("archivaConfiguration#test")
27 public class TestConfiguration
28 implements ArchivaConfiguration
30 private Configuration configuration;
32 public Configuration getConfiguration()
37 public void save( Configuration configuration )
38 throws RegistryException, IndeterminateConfigurationException
40 this.configuration = configuration;
43 public boolean isDefaulted()
48 public void addListener( ConfigurationListener listener )
50 throw new UnsupportedOperationException();
53 public void removeListener( ConfigurationListener listener )
55 throw new UnsupportedOperationException();
58 public void addChangeListener( RegistryListener listener )
60 throw new UnsupportedOperationException();