]> source.dussan.org Git - archiva.git/commitdiff
use o.a.a package namespace for spring-registry-api component
authorOlivier Lamy <olamy@apache.org>
Thu, 12 Apr 2012 15:08:39 +0000 (15:08 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 12 Apr 2012 15:08:39 +0000 (15:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1325311 13f79535-47bb-0310-9956-ffa450edef68

35 files changed:
archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/ArchivaConfiguration.java
archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java
archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/FileTypes.java
archiva-modules/archiva-base/archiva-configuration/src/test/java/org/apache/archiva/configuration/ArchivaConfigurationTest.java
archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java
archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/ArtifactMissingChecksumsConsumer.java
archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/AutoRemoveConsumer.java
archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/MetadataUpdaterConsumer.java
archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/repository/RepositoryPurgeConsumer.java
archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java
archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java
archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java
archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/MockConfiguration.java
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/AbstractRepositoryAdmin.java
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/DefaultRepositoryCommonValidator.java
archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/RepositoryContentFactory.java
archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/metadata/MetadataTools.java
archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/MockConfiguration.java
archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/SecuritySynchronization.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/admin/repositories/SortRepositoriesAction.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/configuration/TestConfiguration.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/connectors/proxy/AddProxyConnectorActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/connectors/proxy/DeleteProxyConnectorActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/connectors/proxy/DisableProxyConnectorActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/connectors/proxy/EditProxyConnectorActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/connectors/proxy/EnableProxyConnectorActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/connectors/proxy/ProxyConnectorsActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/connectors/proxy/SortProxyConnectorsActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/AddManagedRepositoryActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/DeleteManagedRepositoryActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/DeleteRemoteRepositoryActionTest.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/web/action/admin/repositories/EditManagedRepositoryActionTest.java
archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/configuration/TestConfiguration.java
archiva-modules/plugins/problem-reports/src/main/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumer.java
archiva-modules/plugins/stage-repository-merge/src/test/java/org/apache/archiva/configuration/StubConfiguration.java

index 7ea5142b9df33c49a5e584c9a55cdc54654be540..758605f14c1d4cfb34b817ef193cdb695d8d50bb 100644 (file)
@@ -19,8 +19,8 @@ package org.apache.archiva.configuration;
  * under the License.
  */
 
-import org.codehaus.plexus.registry.RegistryException;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 
 /**
  * Configuration holder for the model read from the registry.
@@ -38,7 +38,7 @@ public interface ArchivaConfiguration
      * Save any updated configuration.
      *
      * @param configuration the configuration to save
-     * @throws org.codehaus.plexus.registry.RegistryException
+     * @throws org.apache.archiva.redback.components.registry.RegistryException
      *          if there is a problem saving the registry data
      * @throws IndeterminateConfigurationException
      *          if the configuration cannot be saved because it was read from two sources
index 09e9115f2c2baac4836038d0f69328a2501472f2..a619332d733c15460a653eb3ccdad9c2d83aaeab 100644 (file)
@@ -29,6 +29,9 @@ import org.apache.archiva.policies.DownloadErrorPolicy;
 import org.apache.archiva.policies.Policy;
 import org.apache.archiva.policies.PostDownloadPolicy;
 import org.apache.archiva.policies.PreDownloadPolicy;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.collections.ListUtils;
 import org.apache.commons.collections.MapUtils;
@@ -39,9 +42,6 @@ import org.codehaus.plexus.evaluator.DefaultExpressionEvaluator;
 import org.codehaus.plexus.evaluator.EvaluatorException;
 import org.codehaus.plexus.evaluator.ExpressionEvaluator;
 import org.codehaus.plexus.evaluator.sources.SystemPropertyExpressionSource;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryException;
-import org.codehaus.plexus.registry.RegistryListener;
 import org.codehaus.redback.components.registry.commons.CommonsConfigurationRegistry;
 import org.codehaus.redback.components.springutils.ComponentContainer;
 import org.slf4j.Logger;
index 01bb4c32dd1b78ddfb3ba93645686788d08c101e..9611a5aa252f741ad5ba90d31794663eccfdcd2d 100644 (file)
@@ -22,13 +22,13 @@ package org.apache.archiva.configuration;
 import org.apache.archiva.common.FileTypeUtils;
 import org.apache.archiva.configuration.functors.FiletypeSelectionPredicate;
 import org.apache.archiva.configuration.io.registry.ConfigurationRegistryReader;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.collections.Predicate;
 import org.apache.commons.configuration.CombinedConfiguration;
 import org.apache.tools.ant.types.selectors.SelectorUtils;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryException;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.RegistryException;
 import org.codehaus.redback.components.registry.commons.CommonsConfigurationRegistry;
 import org.springframework.stereotype.Service;
 
index 54bad1b24de0401dfe27f8b25330653def96b760..9369f396f13ffc87c57ba2812dab29d858cbfc5e 100644 (file)
@@ -21,9 +21,9 @@ package org.apache.archiva.configuration;
 
 import junit.framework.TestCase;
 import org.apache.archiva.common.utils.FileUtil;
+import org.apache.archiva.redback.components.registry.RegistryException;
 import org.apache.commons.io.FileUtils;
 import org.apache.commons.lang.StringUtils;
-import org.codehaus.plexus.registry.RegistryException;
 import org.codehaus.redback.components.springutils.ComponentContainer;
 import org.custommonkey.xmlunit.XMLAssert;
 import org.easymock.MockControl;
index 2494eb2f363de957b04ad116359c14eed29371eb..3fc27507c1fd26e7502b3fc620db50cfc7030e93 100644 (file)
@@ -6,14 +6,13 @@ import java.util.List;
 
 import org.apache.archiva.configuration.ArchivaConfiguration;
 import org.apache.archiva.configuration.FileTypes;
-import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
 import org.apache.archiva.consumers.AbstractMonitoredConsumer;
 import org.apache.archiva.consumers.ConsumerException;
 import org.apache.archiva.consumers.KnownRepositoryContentConsumer;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -23,8 +22,6 @@ import org.springframework.context.annotation.Scope;
 import org.springframework.stereotype.Service;
 import org.apache.archiva.admin.model.beans.ManagedRepository;
 
-import javax.annotation.PostConstruct;
-
 /**
  * <code>SimpleArtifactConsumer</code>
  * 
@@ -123,7 +120,7 @@ public class SimpleArtifactConsumer
         return super.isProcessUnmodified();
     }
 
-    public void afterConfigurationChange( Registry registry, String propertyName, Object propertyValue )
+    public void afterConfigurationChange( org.apache.archiva.redback.components.registry.Registry registry, String propertyName, Object propertyValue )
     {
         if ( propertyNameTriggers.contains( propertyName ) )
         {
index 53d476cfbee2015113adda7dd1ef5c9b0e0dd6c7..0480d2e765474df5c37fb36dfd743519d45873b6 100644 (file)
@@ -28,8 +28,8 @@ import org.apache.archiva.configuration.FileTypes;
 import org.apache.archiva.consumers.AbstractMonitoredConsumer;
 import org.apache.archiva.consumers.ConsumerException;
 import org.apache.archiva.consumers.KnownRepositoryContentConsumer;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.springframework.context.annotation.Scope;
 import org.springframework.stereotype.Service;
 
index 4a00ff9491702c23a6d2084554b65008d9eb06ed..513a06ef76fd0079f0a17e92690e86164ee62e92 100644 (file)
@@ -26,8 +26,8 @@ import org.apache.archiva.configuration.FileTypes;
 import org.apache.archiva.consumers.AbstractMonitoredConsumer;
 import org.apache.archiva.consumers.ConsumerException;
 import org.apache.archiva.consumers.KnownRepositoryContentConsumer;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.springframework.context.annotation.Scope;
 import org.springframework.stereotype.Service;
 
index 03bcca06d0076adf47b007999eebd0fb93611a1f..e34ff18f5d9ef60b4e1eb3a4ba75c2756a0cc2b3 100644 (file)
@@ -37,8 +37,8 @@ import org.apache.archiva.repository.RepositoryNotFoundException;
 import org.apache.archiva.repository.layout.LayoutException;
 import org.apache.archiva.repository.metadata.MetadataTools;
 import org.apache.archiva.repository.metadata.RepositoryMetadataException;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.context.annotation.Scope;
index 9255fce41085b4e30da21bd1b8f4471d7b06746b..79d6efb2241bec37ea7fea4aa434773dc6a831f3 100644 (file)
@@ -29,14 +29,14 @@ import org.apache.archiva.consumers.ConsumerException;
 import org.apache.archiva.consumers.KnownRepositoryContentConsumer;
 import org.apache.archiva.metadata.repository.RepositorySession;
 import org.apache.archiva.metadata.repository.RepositorySessionFactory;
+import org.apache.archiva.redback.components.registry.Registry;
 import org.apache.archiva.repository.ManagedRepositoryContent;
 import org.apache.archiva.repository.RepositoryContentFactory;
 import org.apache.archiva.repository.RepositoryException;
 import org.apache.archiva.repository.RepositoryNotFoundException;
 import org.apache.archiva.repository.events.RepositoryListener;
 import org.apache.archiva.repository.metadata.MetadataTools;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.springframework.context.annotation.Scope;
 import org.springframework.stereotype.Service;
 
index 9cbff9bd1f50626442a1ef71528f671c25aea916..93ced141c03b94d1c5f822ebd41e359c24adf270 100644 (file)
@@ -31,13 +31,13 @@ import org.apache.archiva.configuration.FileTypes;
 import org.apache.archiva.consumers.AbstractMonitoredConsumer;
 import org.apache.archiva.consumers.ConsumerException;
 import org.apache.archiva.consumers.KnownRepositoryContentConsumer;
+import org.apache.archiva.redback.components.registry.Registry;
 import org.apache.archiva.scheduler.ArchivaTaskScheduler;
 import org.apache.archiva.scheduler.indexing.ArtifactIndexingTask;
 import org.apache.maven.index.NexusIndexer;
 import org.apache.maven.index.context.IndexCreator;
 import org.apache.maven.index.context.IndexingContext;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.codehaus.plexus.taskqueue.TaskQueueException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
index a2157eb3a27d8209f0cc487a2357017923d18f32..87600c523ad86c116372bf062cdf8c52857888d1 100644 (file)
@@ -38,8 +38,8 @@ import org.apache.archiva.metadata.repository.storage.RepositoryStorage;
 import org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataInvalidException;
 import org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataNotFoundException;
 import org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.context.annotation.Scope;
index 40173802fbacfe0e04f5017cb74575eb95800f77..41b0bd406cb06aded6a092ec80e7038fa1e8be7b 100644 (file)
@@ -64,8 +64,8 @@ import org.apache.maven.wagon.authentication.AuthenticationInfo;
 import org.apache.maven.wagon.proxy.ProxyInfo;
 import org.apache.maven.wagon.repository.Repository;
 import org.apache.tools.ant.types.selectors.SelectorUtils;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.codehaus.plexus.taskqueue.TaskQueueException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
index 88377f4c72b12d14b71b4e20a1b8e3208aa2ec4a..1e3905899c6611acdbf2f0498987502031b83cfc 100644 (file)
@@ -25,9 +25,9 @@ import org.apache.archiva.configuration.ConfigurationListener;
 import org.apache.archiva.configuration.FileType;
 import org.apache.archiva.configuration.FileTypes;
 import org.apache.archiva.configuration.RepositoryScanningConfiguration;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryException;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.easymock.MockControl;
 import org.springframework.stereotype.Service;
 
@@ -59,8 +59,8 @@ public class MockConfiguration
 
     public MockConfiguration()
     {
-        registryControl = MockControl.createNiceControl( Registry.class );
-        registryMock = (Registry) registryControl.getMock();
+        registryControl = MockControl.createNiceControl( org.apache.archiva.redback.components.registry.Registry.class );
+        registryMock = (org.apache.archiva.redback.components.registry.Registry) registryControl.getMock();
     }
 
     @PostConstruct
@@ -81,7 +81,7 @@ public class MockConfiguration
         } );
     }
 
-    public void addChangeListener( RegistryListener listener )
+    public void addChangeListener( org.apache.archiva.redback.components.registry.RegistryListener listener )
     {
         registryListeners.add( listener );
     }
@@ -99,7 +99,7 @@ public class MockConfiguration
 
     public void triggerChange( String name, String value )
     {
-        for ( RegistryListener listener : registryListeners )
+        for ( org.apache.archiva.redback.components.registry.RegistryListener listener : registryListeners )
         {
             try
             {
index aecdcac3aa2b5f917b6f787de7b1f2c6dc980edb..42eda10feb1d2a1cd6e92573e09f12dbb5b612a5 100644 (file)
@@ -27,8 +27,7 @@ import org.apache.archiva.configuration.ArchivaConfiguration;
 import org.apache.archiva.configuration.Configuration;
 import org.apache.archiva.configuration.IndeterminateConfigurationException;
 import org.apache.archiva.redback.users.User;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.Registry;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -81,7 +80,7 @@ public abstract class AbstractRepositoryAdmin
         {
             getArchivaConfiguration().save( config );
         }
-        catch ( RegistryException e )
+        catch ( org.apache.archiva.redback.components.registry.RegistryException e )
         {
             throw new RepositoryAdminException( "Error occurred in the registry: " + e.getLocalizedMessage(), e );
         }
@@ -127,7 +126,7 @@ public abstract class AbstractRepositoryAdmin
         return registry;
     }
 
-    public void setRegistry( Registry registry )
+    public void setRegistry( org.apache.archiva.redback.components.registry.Registry registry )
     {
         this.registry = registry;
     }
index daaa3a8380c90bf58947520b93d55ee47f5317fc..4e4f6491a98826f6b8984afc8f68119319d56c1c 100644 (file)
@@ -28,7 +28,7 @@ import org.apache.archiva.configuration.Configuration;
 import org.apache.archiva.redback.components.scheduler.CronExpressionValidator;
 import org.apache.commons.lang.StringUtils;
 import org.apache.commons.validator.GenericValidator;
-import org.codehaus.plexus.registry.Registry;
+import org.apache.archiva.redback.components.registry.Registry;
 import org.springframework.stereotype.Service;
 
 import javax.inject.Inject;
@@ -51,7 +51,7 @@ public class DefaultRepositoryCommonValidator
 
     @Inject
     @Named( value = "commons-configuration" )
-    private Registry registry;
+    private org.apache.archiva.redback.components.registry.Registry registry;
 
     /**
      * @param abstractRepository
@@ -179,7 +179,7 @@ public class DefaultRepositoryCommonValidator
         return registry;
     }
 
-    public void setRegistry( Registry registry )
+    public void setRegistry( org.apache.archiva.redback.components.registry.Registry registry )
     {
         this.registry = registry;
     }
index 2de5d6f3552358aca2e7a0331be42e7f050f297c..ae98bf6d22a2c3df8b202e41c380010860b0d075 100644 (file)
@@ -26,8 +26,8 @@ import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin;
 import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin;
 import org.apache.archiva.configuration.ArchivaConfiguration;
 import org.apache.archiva.configuration.ConfigurationNames;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.springframework.context.ApplicationContext;
 import org.springframework.stereotype.Service;
 
index eab28b403148486b2653ea7a0ae4926ec3865210..2f0ff245a25b4ead901da84ddb136ed7cd118175 100644 (file)
@@ -35,6 +35,8 @@ import org.apache.archiva.model.Plugin;
 import org.apache.archiva.model.ProjectReference;
 import org.apache.archiva.model.SnapshotVersion;
 import org.apache.archiva.model.VersionedReference;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.apache.archiva.repository.ContentNotFoundException;
 import org.apache.archiva.repository.ManagedRepositoryContent;
 import org.apache.archiva.repository.RemoteRepositoryContent;
@@ -45,8 +47,6 @@ import org.apache.commons.io.FileUtils;
 import org.apache.commons.lang.StringUtils;
 import org.apache.commons.lang.math.NumberUtils;
 import org.apache.commons.lang.time.DateUtils;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
index 05dd31a59e0845f4be4c57cf1aeafa17195a3818..2a9339737ec8c2b749e2dbed434db4df3a3191aa 100755 (executable)
@@ -22,9 +22,9 @@ package org.apache.archiva.repository;
 import org.apache.archiva.configuration.ArchivaConfiguration;
 import org.apache.archiva.configuration.Configuration;
 import org.apache.archiva.configuration.ConfigurationListener;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryException;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.easymock.MockControl;
 import org.springframework.stereotype.Service;
 
index 08824f29df5cd43cf563ef2232cf833e19e26aff..353101c5c5391ded28b0a1b52fdc32c5e4ba5cca 100644 (file)
@@ -33,8 +33,7 @@ import org.apache.archiva.redback.rbac.RbacManagerException;
 import org.apache.archiva.redback.rbac.UserAssignment;
 import org.apache.archiva.redback.role.RoleManager;
 import org.apache.archiva.redback.users.UserManager;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.context.ApplicationContext;
@@ -98,7 +97,7 @@ public class SecuritySynchronization
         return beans;
     }
 
-    public void afterConfigurationChange( Registry registry, String propertyName, Object propertyValue )
+    public void afterConfigurationChange( org.apache.archiva.redback.components.registry.Registry registry, String propertyName, Object propertyValue )
     {
         if ( ConfigurationNames.isManagedRepositories( propertyName ) && propertyName.endsWith( ".id" ) )
         {
@@ -109,7 +108,7 @@ public class SecuritySynchronization
         }
     }
 
-    public void beforeConfigurationChange( Registry registry, String propertyName, Object propertyValue )
+    public void beforeConfigurationChange( org.apache.archiva.redback.components.registry.Registry registry, String propertyName, Object propertyValue )
     {
         /* do nothing */
     }
index 307a748da21f22d074933fd6a206dfce98377449..087814b838761ffe9c8395f8364bbdc290925eca 100644 (file)
@@ -24,7 +24,6 @@ import org.apache.archiva.configuration.ArchivaConfiguration;
 import org.apache.archiva.configuration.Configuration;
 import org.apache.archiva.configuration.IndeterminateConfigurationException;
 import org.apache.archiva.configuration.RepositoryGroupConfiguration;
-import org.codehaus.plexus.registry.RegistryException;
 import org.springframework.context.annotation.Scope;
 import org.springframework.stereotype.Controller;
 
@@ -89,7 +88,7 @@ public class SortRepositoriesAction
      * @return the webwork result code to issue.
      * @throws java.io.IOException                   thrown if unable to save file to disk.
      * @throws org.apache.archiva.configuration.InvalidConfigurationException thrown if configuration is invalid.
-     * @throws org.codehaus.plexus.registry.RegistryException             thrown if configuration subsystem has a problem saving the configuration to disk.
+     * @throws org.apache.archiva.redback.components.registry.RegistryException             thrown if configuration subsystem has a problem saving the configuration to disk.
      */
     protected String saveConfiguration( Configuration configuration )
     {
@@ -103,7 +102,7 @@ public class SortRepositoriesAction
             addActionError( e.getMessage() );
             return INPUT;
         }
-        catch ( RegistryException e )
+        catch ( org.apache.archiva.redback.components.registry.RegistryException e )
         {
             addActionError( "Configuration Registry Exception: " + e.getMessage() );
             return INPUT;
index 46787b4afc7e0ef8d10e6f5ade0327f9aa3bdacc..cd0036a65c1b9e364a6b18ce11e815e50c7e0347 100644 (file)
@@ -19,8 +19,7 @@ package org.apache.archiva.configuration;
  * under the License.
  */
 
-import org.codehaus.plexus.registry.RegistryException;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -38,7 +37,7 @@ public class TestConfiguration
     }
 
     public void save( Configuration configuration )
-        throws RegistryException, IndeterminateConfigurationException
+        throws org.apache.archiva.redback.components.registry.RegistryException, IndeterminateConfigurationException
     {
         this.configuration = configuration;
     }
index 4de894046402bcbbb899c9bb1cb36ade0f292b45..df62dd1d0d6092fdc8d37b7e1491eedbc22f5146 100644 (file)
@@ -37,7 +37,6 @@ import org.apache.archiva.policies.PropagateErrorsOnUpdateDownloadPolicy;
 import org.apache.archiva.policies.ReleasesPolicy;
 import org.apache.archiva.policies.SnapshotsPolicy;
 import org.apache.archiva.web.action.AbstractWebworkTestCase;
-import org.codehaus.plexus.registry.RegistryException;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.easymock.MockControl;
 
@@ -397,7 +396,7 @@ public class AddProxyConnectorActionTest
     }
 
     private void expectConfigurationRequests( int requestConfigCount )
-        throws RegistryException, IndeterminateConfigurationException
+        throws org.apache.archiva.redback.components.registry.RegistryException, IndeterminateConfigurationException
     {
         Configuration config = createInitialConfiguration();
         archivaConfiguration.getConfiguration();
index 4ec1d1317a9efc1547b68024cba3f2381a7e0288..783cea8e70b8589eb2365838e54a089f22873e5c 100644 (file)
@@ -30,7 +30,6 @@ import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
 import org.apache.archiva.configuration.ProxyConnectorConfiguration;
 import org.apache.archiva.configuration.RemoteRepositoryConfiguration;
 import org.apache.archiva.web.action.AbstractWebworkTestCase;
-import org.codehaus.plexus.registry.RegistryException;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.easymock.MockControl;
 
@@ -216,7 +215,7 @@ public class DeleteProxyConnectorActionTest
     }
 
     private void expectConfigurationRequests( int requestConfigCount )
-        throws RegistryException, IndeterminateConfigurationException
+        throws org.apache.archiva.redback.components.registry.RegistryException, IndeterminateConfigurationException
     {
         Configuration config = createInitialConfiguration();
 
index e83c367f99c6ff72333c886faaf6fff5ea21c690..679f548a5243db05470f6acb4c9c86bdfd5ba40e 100644 (file)
@@ -28,7 +28,7 @@ import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
 import org.apache.archiva.configuration.ProxyConnectorConfiguration;
 import org.apache.archiva.configuration.RemoteRepositoryConfiguration;
 import org.apache.archiva.web.action.AbstractWebworkTestCase;
-import org.codehaus.plexus.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryException;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.easymock.MockControl;
 
index e0e15b2b68b62ef09295e3e92fa750da910230ac..6350b633b99a68d9d1b8084cfc53fe964ba40657 100644 (file)
@@ -37,7 +37,7 @@ import org.apache.archiva.policies.PropagateErrorsOnUpdateDownloadPolicy;
 import org.apache.archiva.policies.ReleasesPolicy;
 import org.apache.archiva.policies.SnapshotsPolicy;
 import org.apache.archiva.web.action.AbstractWebworkTestCase;
-import org.codehaus.plexus.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryException;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.easymock.MockControl;
 
@@ -84,7 +84,7 @@ public class EditProxyConnectorActionTest
     }
 
     private void expectConfigurationRequests( int requestConfigCount )
-        throws RegistryException, IndeterminateConfigurationException
+        throws org.apache.archiva.redback.components.registry.RegistryException, IndeterminateConfigurationException
     {
         expectConfigurationRequests( requestConfigCount, 1 );
     }
index b7145500f6b9624db2ee6f394d23f394f2a4c287..7797ccf3eb8b970e6d2913c3ac0f2aa5bef407d1 100644 (file)
@@ -28,7 +28,6 @@ import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
 import org.apache.archiva.configuration.ProxyConnectorConfiguration;
 import org.apache.archiva.configuration.RemoteRepositoryConfiguration;
 import org.apache.archiva.web.action.AbstractWebworkTestCase;
-import org.codehaus.plexus.registry.RegistryException;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.easymock.MockControl;
 
@@ -61,7 +60,7 @@ public class EnableProxyConnectorActionTest
     }
 
     private void expectConfigurationRequests( int requestConfigCount )
-        throws RegistryException, IndeterminateConfigurationException
+        throws org.apache.archiva.redback.components.registry.RegistryException, IndeterminateConfigurationException
     {
         Configuration config = createInitialConfiguration();
 
index 4a838e3428d17f6145d04334df0494fbb11c39ef..e76abcec9aacaa29ee959d0a6dbfe76f6a3c094c 100644 (file)
@@ -30,7 +30,7 @@ import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
 import org.apache.archiva.configuration.ProxyConnectorConfiguration;
 import org.apache.archiva.configuration.RemoteRepositoryConfiguration;
 import org.apache.archiva.web.action.AbstractWebworkTestCase;
-import org.codehaus.plexus.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryException;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.easymock.MockControl;
 
index 83f025b3d09dc27faea8932483ff6637a9a22297..702a72ba4df26a0dd5b9825ccef6405a71457e38 100644 (file)
@@ -32,7 +32,7 @@ import org.apache.archiva.configuration.ProxyConnectorConfiguration;
 import org.apache.archiva.configuration.RemoteRepositoryConfiguration;
 import org.apache.archiva.configuration.functors.ProxyConnectorConfigurationOrderComparator;
 import org.apache.archiva.web.action.AbstractWebworkTestCase;
-import org.codehaus.plexus.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryException;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.easymock.MockControl;
 
index 32c2859f5083400fef4d9d7d983f3278f42276f4..ad21c86f7fce269c42119aae587fe8cccee0853f 100644 (file)
@@ -31,7 +31,6 @@ import org.apache.archiva.scheduler.repository.RepositoryTask;
 import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.archiva.web.validator.utils.ValidatorUtil;
 import org.apache.commons.io.FileUtils;
-import org.codehaus.plexus.registry.Registry;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.apache.archiva.redback.integration.interceptor.SecureActionException;
 import org.easymock.MockControl;
@@ -60,7 +59,7 @@ public class AddManagedRepositoryActionTest
 
     private MockControl archivaConfigurationControl;
 
-    private Registry registry;
+    private org.apache.archiva.redback.components.registry.Registry registry;
 
     private MockControl registryControl;
 
@@ -85,8 +84,8 @@ public class AddManagedRepositoryActionTest
         roleManagerControl = MockControl.createControl( RoleManager.class );
         roleManager = (RoleManager) roleManagerControl.getMock();
 
-        registryControl = MockControl.createControl( Registry.class );
-        registry = (Registry) registryControl.getMock();
+        registryControl = MockControl.createControl( org.apache.archiva.redback.components.registry.Registry.class );
+        registry = (org.apache.archiva.redback.components.registry.Registry) registryControl.getMock();
         //action.setRegistry( registry );
 
         repositoryTaskSchedulerControl = MockClassControl.createControl( RepositoryArchivaTaskScheduler.class );
index c20600140581f0876fab6ec71d53d107341933ec..7b13ccf7a6f30ceaf5b56c72c3c6cb960b53f1bf 100644 (file)
@@ -43,7 +43,7 @@ import org.apache.archiva.web.action.AbstractActionTestCase;
 import org.apache.archiva.web.action.AuditEventArgumentsMatcher;
 import org.apache.archiva.redback.role.RoleManager;
 import org.apache.archiva.redback.role.RoleManagerException;
-import org.codehaus.plexus.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryException;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.apache.archiva.redback.integration.interceptor.SecureActionException;
 import org.easymock.MockControl;
index 0e3bfdb2b97a3d4778f61c39f5f03dfaebbaa584..f810fa8561f9b47b1fc429dc9aa00b70136eea3f 100644 (file)
@@ -30,7 +30,6 @@ import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
 import org.apache.archiva.configuration.ProxyConnectorConfiguration;
 import org.apache.archiva.configuration.RemoteRepositoryConfiguration;
 import org.apache.archiva.web.action.AbstractActionTestCase;
-import org.codehaus.plexus.registry.RegistryException;
 import org.easymock.MockControl;
 
 import java.util.Collections;
@@ -94,7 +93,7 @@ public class DeleteRemoteRepositoryActionTest
     }
 
     public void testDeleteRemoteRepository()
-        throws RegistryException, IndeterminateConfigurationException, RepositoryAdminException
+        throws org.apache.archiva.redback.components.registry.RegistryException, IndeterminateConfigurationException, RepositoryAdminException
     {
         Configuration configuration = createConfigurationForEditing( createRepository() );
         configuration.addManagedRepository( createManagedRepository( "internal", "target/repo/internal" ) );
index bad7276bbfa04c9f5d8d6f4666385f5eb2591a62..3878f4e93b4ece8ce94539e6d1f07e8b733e4c13 100644 (file)
@@ -38,7 +38,6 @@ import org.apache.archiva.web.validator.utils.ValidatorUtil;
 import org.apache.archiva.webtest.memory.TestRepositorySessionFactory;
 import org.apache.commons.io.FileUtils;
 import org.apache.archiva.redback.role.RoleManager;
-import org.codehaus.plexus.registry.Registry;
 import org.apache.archiva.redback.integration.interceptor.SecureActionBundle;
 import org.apache.archiva.redback.integration.interceptor.SecureActionException;
 import org.easymock.MockControl;
@@ -72,7 +71,7 @@ public class EditManagedRepositoryActionTest
 
     private ArchivaConfiguration archivaConfiguration;
 
-    private Registry registry;
+    private org.apache.archiva.redback.components.registry.Registry registry;
 
     private MockControl registryControl;
 
@@ -96,8 +95,8 @@ public class EditManagedRepositoryActionTest
         roleManagerControl = MockControl.createControl( RoleManager.class );
         roleManager = (RoleManager) roleManagerControl.getMock();
 
-        registryControl = MockControl.createControl( Registry.class );
-        registry = (Registry) registryControl.getMock();
+        registryControl = MockControl.createControl( org.apache.archiva.redback.components.registry.Registry.class );
+        registry = (org.apache.archiva.redback.components.registry.Registry) registryControl.getMock();
 
         repositoryTaskSchedulerControl = MockClassControl.createControl( RepositoryArchivaTaskScheduler.class );
         repositoryTaskScheduler = (RepositoryArchivaTaskScheduler) repositoryTaskSchedulerControl.getMock();
index 2fcfddedce1cc9ff724526385e840110cbafb1f6..d5839d210cdb96b20d1825b75a966937ed227608 100644 (file)
@@ -1,7 +1,7 @@
 package org.apache.archiva.configuration;
 
-import org.codehaus.plexus.registry.RegistryException;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.springframework.stereotype.Service;
 
 /*
index 648e06addbee15626e9ca54c5b831c855fd5c558..e75b00afd5759cb944fc7bfb306510731a168f9f 100644 (file)
@@ -36,8 +36,8 @@ import org.apache.archiva.configuration.FileTypes;
 import org.apache.archiva.consumers.AbstractMonitoredConsumer;
 import org.apache.archiva.consumers.ConsumerException;
 import org.apache.archiva.consumers.KnownRepositoryContentConsumer;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.Registry;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.context.annotation.Scope;
index acf099232801b641a0d31551fdd347c9bd3fa977..b0ec1d8850bbbc6b658005f6f54b50581d73b4b3 100644 (file)
@@ -19,8 +19,8 @@ package org.apache.archiva.configuration;
  * under the License.
  */
 
-import org.codehaus.plexus.registry.RegistryException;
-import org.codehaus.plexus.registry.RegistryListener;
+import org.apache.archiva.redback.components.registry.RegistryException;
+import org.apache.archiva.redback.components.registry.RegistryListener;
 import org.springframework.stereotype.Service;
 
 @Service("archivaConfiguration#mocked")