]> source.dussan.org Git - archiva.git/commitdiff
PR: MRM-43
authorEdwin L. Punzalan <epunzalan@apache.org>
Tue, 31 Jan 2006 04:26:01 +0000 (04:26 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Tue, 31 Jan 2006 04:26:01 +0000 (04:26 +0000)
Made the class method more general

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@373697 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/configuration/ProxyConfiguration.java

index be0555088a161d489db24b55c598b06006983a05..02918ca80837bb6a94a992d8db0262c2c0e3d8ca 100644 (file)
@@ -43,8 +43,7 @@ public class ProxyConfiguration
     private boolean browsable;
 
     private ArtifactRepository repoCache;
-
-    private ArrayList repositories = new ArrayList();
+    private List repositories = new ArrayList();
 
     public void setBrowsable( boolean browsable )
     {
@@ -56,7 +55,7 @@ public class ProxyConfiguration
         return browsable;
     }
 
-    public void setRepositoryCachePath( String repoCachePath )
+    public void setRepositoryCachePath( String repoCacheURL )
     {
         ArtifactRepositoryPolicy standardPolicy;
         standardPolicy = new ArtifactRepositoryPolicy( true, ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS,
@@ -64,7 +63,7 @@ public class ProxyConfiguration
 
         ArtifactRepositoryLayout layout = new DefaultRepositoryLayout();
 
-        repoCache = artifactRepositoryFactory.createArtifactRepository( "localCache", repoCachePath, layout,
+        repoCache = artifactRepositoryFactory.createArtifactRepository( "localCache", repoCacheURL, layout,
                                                                         standardPolicy, standardPolicy );
     }
 
@@ -88,7 +87,7 @@ public class ProxyConfiguration
         return Collections.unmodifiableList( repositories );
     }
 
-    public void setRepositories( ArrayList repositories )
+    public void setRepositories( List repositories )
     {
         this.repositories = repositories;
     }