archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joak...@apache.org
Subject svn commit: r585564 - /maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/
Date Wed, 17 Oct 2007 16:39:09 GMT
Author: joakime
Date: Wed Oct 17 09:39:06 2007
New Revision: 585564

URL: http://svn.apache.org/viewvc?rev=585564&view=rev
Log:
Setting deprecations on interfaces / classes not to use.

Modified:
    maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayout.java
    maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayoutFactory.java
    maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/DefaultBidirectionalRepositoryLayout.java
    maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/FilenameParts.java
    maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/LegacyBidirectionalRepositoryLayout.java
    maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/RepositoryLayoutUtils.java

Modified: maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayout.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayout.java?rev=585564&r1=585563&r2=585564&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayout.java
(original)
+++ maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayout.java
Wed Oct 17 09:39:06 2007
@@ -22,6 +22,10 @@
 import org.apache.maven.archiva.model.ArchivaArtifact;
 import org.apache.maven.archiva.model.ArtifactReference;
 import org.apache.maven.archiva.model.VersionedReference;
+import org.apache.maven.archiva.repository.ManagedRepositoryContent;
+import org.apache.maven.archiva.repository.RemoteRepositoryContent;
+import org.apache.maven.archiva.repository.RepositoryContentFactory;
+import org.apache.maven.archiva.repository.content.RepositoryRequest;
 
 /**
  * BidirectionalRepositoryLayout - Similar in scope to ArtifactRepositoryLayout, but does
@@ -29,6 +33,8 @@
  *
  * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
  * @version $Id$
+ * 
+ * @deprecated use {@link RepositoryContentFactory} instead.
  */
 public interface BidirectionalRepositoryLayout
 {
@@ -36,12 +42,16 @@
      * Get the identifier for this layout.
      *
      * @return the identifier for this layout.
+     * 
+     * @deprecated use {@link ManagedRepositoryContent#getId()} or {@link RemoteRepositoryContent#getId()}
instead.
      */
     public String getId();
 
     /**
      * Given a repository relative path, return <code>true</code> if the path
is valid
      * according to the repository layout.
+     * 
+     * @deprecated use {@link RepositoryRequest#toArtifactReference(String)} instead.
      */
     public boolean isValidPath( String path );
 
@@ -50,6 +60,8 @@
      *
      * @param artifact the artifact to use.
      * @return the relative path to the artifact.
+     * 
+     * @deprecated use {@link ManagedRepositoryContent#toPath(ArchivaArtifact)} instead.
      */
     public String toPath( ArchivaArtifact artifact );
 
@@ -58,6 +70,9 @@
      *
      * @param reference the artifact reference to use.
      * @return the relative path to the artifact.
+     * 
+     * @deprecated use {@link ManagedRepositoryContent#toPath(ArtifactReference))} or 
+     *                 {@link RemoteRepositoryContent#toPath(ArtifactReference)} instead.
      */
     public String toPath( ArtifactReference reference );
 
@@ -68,6 +83,9 @@
      * @return the {@link ArchivaArtifact} representing the path. (or null if path cannot
be converted to
      *         an {@link ArchivaArtifact})
      * @throws LayoutException if there was a problem converting the path to an artifact.
+     * 
+     * @deprecated use {@link ManagedRepositoryContent#toArtifactReference(String))} or 
+     *                 {@link RemoteRepositoryContent#toArtifactReference(String)} instead.
      */
     public ArchivaArtifact toArtifact( String path )
         throws LayoutException;
@@ -79,6 +97,9 @@
      * @return the {@link ArtifactReference} representing the path.  (or null if path cannot
be converted to
      *         a {@link ArtifactReference})
      * @throws LayoutException if there was a problem converting the path to an artifact.
+     * 
+     * @deprecated use {@link ManagedRepositoryContent#toArtifactReference(String))} or 
+     *                 {@link RemoteRepositoryContent#toArtifactReference(String)} instead.
      */
     public ArtifactReference toArtifactReference( String path )
         throws LayoutException;

Modified: maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayoutFactory.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayoutFactory.java?rev=585564&r1=585563&r2=585564&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayoutFactory.java
(original)
+++ maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/BidirectionalRepositoryLayoutFactory.java
Wed Oct 17 09:39:06 2007
@@ -24,6 +24,8 @@
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
 import org.apache.maven.archiva.configuration.ConfigurationNames;
 import org.apache.maven.archiva.model.ArchivaArtifact;
+import org.apache.maven.archiva.repository.RepositoryContentFactory;
+import org.apache.maven.archiva.repository.content.RepositoryRequest;
 import org.codehaus.plexus.logging.AbstractLogEnabled;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
@@ -39,6 +41,9 @@
  *
  * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
  * @version $Id$
+ * 
+ * @deprecated use {@link RepositoryContentFactory} instead.
+ * 
  * @plexus.component role="org.apache.maven.archiva.repository.layout.BidirectionalRepositoryLayoutFactory"
  */
 public class BidirectionalRepositoryLayoutFactory
@@ -57,6 +62,10 @@
 
     private Map repositoryMap = new HashMap();
 
+    /**
+     * @deprecated use {@link RepositoryContentFactory#getManagedRepositoryContent(String)}
or 
+     *                 {@link RepositoryContentFactory#getRemoteRepositoryContent(String)}
instead.
+     */
     public BidirectionalRepositoryLayout getLayout( String type )
         throws LayoutException
     {
@@ -69,6 +78,9 @@
         return (BidirectionalRepositoryLayout) layouts.get( type );
     }
 
+    /**
+     * @deprecated use {@link RepositoryRequest#toArtifactReference(String)} instead.
+     */
     public BidirectionalRepositoryLayout getLayoutForPath( String path )
         throws LayoutException
     {
@@ -84,6 +96,10 @@
     }
 
 
+    /**
+     * @deprecated use {@link RepositoryContentFactory#getManagedRepositoryContent(String)}
or 
+     *                 {@link RepositoryContentFactory#getRemoteRepositoryContent(String)}
instead.
+     */
     public BidirectionalRepositoryLayout getLayout( ArchivaArtifact artifact )
         throws LayoutException
     {

Modified: maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/DefaultBidirectionalRepositoryLayout.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/DefaultBidirectionalRepositoryLayout.java?rev=585564&r1=585563&r2=585564&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/DefaultBidirectionalRepositoryLayout.java
(original)
+++ maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/DefaultBidirectionalRepositoryLayout.java
Wed Oct 17 09:39:06 2007
@@ -23,6 +23,8 @@
 import org.apache.maven.archiva.common.utils.VersionUtil;
 import org.apache.maven.archiva.model.ArchivaArtifact;
 import org.apache.maven.archiva.model.ArtifactReference;
+import org.apache.maven.archiva.repository.ManagedRepositoryContent;
+import org.apache.maven.archiva.repository.RemoteRepositoryContent;
 import org.apache.maven.archiva.repository.content.ArtifactExtensionMapping;
 
 /**
@@ -31,6 +33,7 @@
  * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
  * @version $Id$
  * @plexus.component role-hint="default"
+ * @deprecated to not use directly. Use {@link ManagedRepositoryContent} or {@link RemoteRepositoryContent}
instead.
  */
 public class DefaultBidirectionalRepositoryLayout
     implements BidirectionalRepositoryLayout

Modified: maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/FilenameParts.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/FilenameParts.java?rev=585564&r1=585563&r2=585564&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/FilenameParts.java
(original)
+++ maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/FilenameParts.java
Wed Oct 17 09:39:06 2007
@@ -1,5 +1,8 @@
 package org.apache.maven.archiva.repository.layout;
 
+import org.apache.maven.archiva.repository.ManagedRepositoryContent;
+import org.apache.maven.archiva.repository.RemoteRepositoryContent;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -24,6 +27,7 @@
  *
  * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
  * @version $Id$
+ * @deprecated to not use directly. Use {@link ManagedRepositoryContent} or {@link RemoteRepositoryContent}
instead.
  */
 public class FilenameParts
 {

Modified: maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/LegacyBidirectionalRepositoryLayout.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/LegacyBidirectionalRepositoryLayout.java?rev=585564&r1=585563&r2=585564&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/LegacyBidirectionalRepositoryLayout.java
(original)
+++ maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/LegacyBidirectionalRepositoryLayout.java
Wed Oct 17 09:39:06 2007
@@ -22,6 +22,8 @@
 import org.apache.commons.lang.StringUtils;
 import org.apache.maven.archiva.model.ArchivaArtifact;
 import org.apache.maven.archiva.model.ArtifactReference;
+import org.apache.maven.archiva.repository.ManagedRepositoryContent;
+import org.apache.maven.archiva.repository.RemoteRepositoryContent;
 import org.apache.maven.archiva.repository.content.ArtifactExtensionMapping;
 
 import java.util.HashMap;
@@ -33,6 +35,8 @@
  * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
  * @version $Id$
  * @plexus.component role-hint="legacy"
+ * 
+ * @deprecated to not use directly. Use {@link ManagedRepositoryContent} or {@link RemoteRepositoryContent}
instead.
  */
 public class LegacyBidirectionalRepositoryLayout
     implements BidirectionalRepositoryLayout

Modified: maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/RepositoryLayoutUtils.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/RepositoryLayoutUtils.java?rev=585564&r1=585563&r2=585564&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/RepositoryLayoutUtils.java
(original)
+++ maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/layout/RepositoryLayoutUtils.java
Wed Oct 17 09:39:06 2007
@@ -21,12 +21,18 @@
 
 import org.apache.commons.lang.StringUtils;
 import org.apache.maven.archiva.common.utils.VersionUtil;
+import org.apache.maven.archiva.repository.ManagedRepositoryContent;
+import org.apache.maven.archiva.repository.RemoteRepositoryContent;
+import org.apache.maven.archiva.repository.RepositoryContentFactory;
 
 /**
  * RepositoryLayoutUtils - utility methods common for most BidirectionalRepositoryLayout
implementation. 
  *
  * @author <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
  * @version $Id$
+ * 
+ * @deprecated use {@link RepositoryContentFactory} and {@link ManagedRepositoryContent}

+ *             or {@link RemoteRepositoryContent} instead.
  */
 public class RepositoryLayoutUtils
 {
@@ -61,6 +67,7 @@
      *                  (null to allow algorithm to calculate one)
      * @return the parts of the filename.
      * @throws LayoutException
+     * @deprecated to not use directly. Use {@link ManagedRepositoryContent} or {@link RemoteRepositoryContent}
instead.
      */
     public static FilenameParts splitFilename( String filename, String possibleArtifactId
) throws LayoutException
     {
@@ -85,6 +92,7 @@
      *                  (null to allow algorithm to calculate one)
      * @return the parts of the filename.
      * @throws LayoutException
+     * @deprecated to not use directly. Use {@link ManagedRepositoryContent} or {@link RemoteRepositoryContent}
instead.
      */
     public static FilenameParts splitFilename( String filename, String possibleArtifactId,
                                                String possibleVersion ) throws LayoutException



Mime
View raw message