avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository RepositoryContext.java RepositoryFactory.java
Date Mon, 17 Nov 2003 08:19:51 GMT
mcconnell    2003/11/17 00:19:51

  Modified:    repository/spi project.xml
  Added:       repository/spi/src/java/org/apache/avalon/repository
                        RepositoryContext.java RepositoryFactory.java
  Log:
  Seperation out of the api needed only by a repository implementation or bootstrapper as
distinct from the api which serves a repository user.
  
  Revision  Changes    Path
  1.5       +0 -35     avalon-sandbox/repository/spi/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/repository/spi/project.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- project.xml	13 Nov 2003 14:24:42 -0000	1.4
  +++ project.xml	17 Nov 2003 08:19:50 -0000	1.5
  @@ -22,39 +22,4 @@
       </dependency>
     </dependencies>
   
  -  <build>
  -
  -    <sourceDirectory>${basedir}/src/java/</sourceDirectory>
  -    <unitTestSourceDirectory>${basedir}/src/test/</unitTestSourceDirectory>
  -
  -    <unitTest>
  -      <includes>
  -        <include>**/*Test.*</include>
  -        <include>**/*TestCase.*</include>
  -      </includes>
  -      <excludes>
  -        <exclude>**/Abstract*.*</exclude>
  -      </excludes>
  -      <resources>
  -        <resource>
  -          <directory>${basedir}/src/test</directory>
  -          <includes>
  -            <include>**/*.x*</include>
  -          </includes>
  -        </resource>
  -      </resources>
  -    </unitTest>
  -
  -    <resources>
  -      <resource>
  -        <directory>${basedir}/src/java</directory>
  -        <includes> 
  -          <include>**/*.properties</include>
  -        </includes>
  -      </resource>
  -    </resources>
  -
  -    <jars></jars>
  -
  -  </build>
   </project>
  
  
  
  1.1                  avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/RepositoryContext.java
  
  Index: RepositoryContext.java
  ===================================================================
  /*
  
   ============================================================================
                     The Apache Software License, Version 1.1
   ============================================================================
  
   Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
  
   Redistribution and use in source and binary forms, with or without modifica-
   tion, are permitted provided that the following conditions are met:
  
   1. Redistributions of  source code must  retain the above copyright  notice,
      this list of conditions and the following disclaimer.
  
   2. Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
  
   3. The end-user documentation included with the redistribution, if any, must
      include  the following  acknowledgment:  "This product includes  software
      developed  by the  Apache Software Foundation  (http://www.apache.org/)."
      Alternately, this  acknowledgment may  appear in the software itself,  if
      and wherever such third-party acknowledgments normally appear.
  
   4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and
      "Apache Software Foundation"  must not be used to endorse or promote
      products derived  from this  software without  prior written
      permission. For written permission, please contact apache@apache.org.
  
   5. Products  derived from this software may not  be called "Apache", nor may
      "Apache" appear  in their name,  without prior written permission  of the
      Apache Software Foundation.
  
   THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
   APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
   INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
   DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
   OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
   ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
   (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
   THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  
   This software  consists of voluntary contributions made  by many individuals
   on  behalf of the Apache Software  Foundation. For more  information on the
   Apache Software Foundation, please see <http://www.apache.org/>.
  
  */
  
  package org.apache.avalon.repository ;
  
  
  import java.net.URL ;
  import java.net.MalformedURLException ;
  
  
  /**
   * Repository configuration bean interface.
   *  
   * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
   * @author $Author: mcconnell $
   * @version $Revision: 1.1 $
   */
  public interface RepositoryContext
  {
      /**
       * Gets the ProxyContext used by the Kernel to access remote repositories.
       * 
       * @return the proxy context used by the Kernel
       */
      ProxyContext getProxyContext() ;
      
      /**
       * Sets the ProxyContext for this KernelConfig.
       * 
       * @param a_proxyCtx sets the proxy context
       */
      void setProxyContext( ProxyContext a_proxyCtx ) ;
      
      /**
       * Gets the set of remote repositories used to download artifacts.
       * 
       * @return the remote repositories to use
       */
      URL[] getRemoteRepositories() ;
      
      /**
       * Gets the remote repository urls for downloading artifacts.
       * 
       * @param a_remoteRepositories the remote Repositories to use.
       */
      void setRemoteRepositoryUrls( URL[] a_remoteRepositories ) ;
  
      /**
       * Sets the remote repository urls for downloading artifacts.
       * 
       * @param a_urls the remote Repositories to use.
       */
      void setRemoteRepositoryUrls( String[] a_urls ) 
          throws MalformedURLException ;
  
      /**
       * Gets the directory where repository artifacts are stored after being 
       * downloaded from the Repository.
       * 
       * @return the place to cache repository artifacts
       */
      String getCacheDir() ;
  
      /**
       * Sets the directory where we store downloaded artifacts.
       * 
       * @param a_cacheDir the place to cache repository artifacts
       */
      void setCacheDir( String a_cacheDir ) ;
  }
  
  
  
  1.4       +7 -7      avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/RepositoryFactory.java
  
  
  
  

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


Mime
View raw message