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;
33 public Configuration getConfiguration()
39 public void save( Configuration configuration )
40 throws RegistryException, IndeterminateConfigurationException
42 this.configuration = configuration;
46 public boolean isDefaulted()
52 public void addListener( ConfigurationListener listener )
58 public void removeListener( ConfigurationListener listener )
64 public void addChangeListener( RegistryListener listener )