You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2003/12/04 01:24:25 UTC

cvs commit: avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl DefaultRepository.java

mcconnell    2003/12/03 16:24:25

  Modified:    repository/impl/src/java/org/apache/avalon/repository/impl
                        DefaultRepository.java
  Log:
  Add a default contructor for DefaultRepository.
  
  Revision  Changes    Path
  1.5       +21 -1     avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultRepository.java
  
  Index: DefaultRepository.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultRepository.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultRepository.java	3 Dec 2003 15:01:09 -0000	1.4
  +++ DefaultRepository.java	4 Dec 2003 00:24:25 -0000	1.5
  @@ -88,6 +88,13 @@
   public class DefaultRepository implements Repository
   {
       //------------------------------------------------------------------
  +    // static 
  +    //------------------------------------------------------------------
  +
  +    private static final String[] DEFAULT_HOSTS = 
  +      new String[]{ "http://dpml.net", "http://ibiblio.org/maven" };
  +
  +    //------------------------------------------------------------------
       // immutable state 
       //------------------------------------------------------------------
   
  @@ -106,6 +113,19 @@
       //------------------------------------------------------------------
       // constructor 
       //------------------------------------------------------------------
  +
  +   /**
  +    * Creation of a new instance of the default repository using the 
  +    * default hosts.
  +    *
  +    * @param cache the cache manager assigned to the repository
  +    * @exception NullPointerException if the cache or hosts argument
  +    * is null
  +    */
  +    public DefaultRepository( CacheManager cache )
  +    {
  +        this( cache, DEFAULT_HOSTS );
  +    }
   
      /**
       * Creation of a new instance of the default repository.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org