mcconnell    2003/12/03 07:01:10

  Modified:    repository maven.xml platform.xml
               repository/impl/src/java/org/apache/avalon/repository/impl
                        DefaultBlockManifest.java DefaultCacheManager.java
                        DefaultFactory.java DefaultRepository.java
                        RepositoryCriteria.java
               repository/main/src/java/org/apache/avalon/repository/main
                        AbstractBuilder.java DefaultBuilder.java
                        DefaultInitialContext.java
               repository/site/xdocs/about/api index.xml
               repository/test/src/test/org/apache/avalon/repository/main
                        DefaultInitialContextTest.java
  Added:       repository/spi/src/java/org/apache/avalon/repository/provider
                        BlockManifest.java Builder.java CacheManager.java
                        InitialContext.java
  Removed:     repository/spi/src/java/org/apache/avalon/repository
                        BlockManifest.java Builder.java CacheManager.java
                        InitialContext.java
  Log:
  Move SPI interfaces to the provider subpackage so we can identify these under a 
seperate category in the javadocs.
  
  Revision  Changes    Path
  1.11      +2 -2      avalon-sandbox/repository/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/repository/maven.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- maven.xml 25 Nov 2003 18:55:15 -0000      1.10
  +++ maven.xml 3 Dec 2003 15:01:09 -0000       1.11
  @@ -121,9 +121,9 @@
       <ant:mkdir dir="${maven.build.dir}/docs/api" />
       <ant:property name="copyright"
         value="Copyright &amp;copy; ${year} ${pom.organization.name}. All Rights 
Reserved." />
  -    <ant:property name="title" value="${pom.name} ${pom.currentVersion} API"/>
  +    <ant:property name="title" value="${pom.name} ${pom.currentVersion}"/>
       <ant:javadoc destdir="${maven.build.dir}/docs/api" 
  -     doctitle="&lt;h1&gt;Merlin Service Management API&lt;/h1&gt;" 
  +     doctitle="&lt;h1&gt;${title}&lt;/h1&gt;" 
         noindex="false" author="true" use="true"
        windowtitle="${title}" 
         bottom="${copyright}"
  
  
  
  1.8       +7 -2      avalon-sandbox/repository/platform.xml
  
  Index: platform.xml
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/repository/platform.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- platform.xml      3 Dec 2003 14:15:20 -0000       1.7
  +++ platform.xml      3 Dec 2003 15:01:09 -0000       1.8
  @@ -43,8 +43,13 @@
     <packageGroups>
   
       <packageGroup>
  -      <title>API/SPI</title>
  -      
<packages>org.apache.avalon.repository,org.apache.avalon.repository.meta</packages>
  +      <title>API</title>
  +      <packages>org.apache.avalon.repository</packages>
  +    </packageGroup>
  +
  +    <packageGroup>
  +      <title>SPI</title>
  +      
<packages>org.apache.avalon.repository.provider,org.apache.avalon.repository.meta</packages>
       </packageGroup>
   
       <packageGroup>
  
  
  
  1.3       +2 -2      
avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultBlockManifest.java
  
  Index: DefaultBlockManifest.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultBlockManifest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultBlockManifest.java 11 Nov 2003 01:22:26 -0000      1.2
  +++ DefaultBlockManifest.java 3 Dec 2003 15:01:09 -0000       1.3
  @@ -52,7 +52,7 @@
   
   import java.util.jar.Manifest ;
   
  -import org.apache.avalon.repository.BlockManifest;
  +import org.apache.avalon.repository.provider.BlockManifest;
   
   /**
    * An extended manifest that provides a set of convinience operations
  
  
  
  1.4       +3 -3      
avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultCacheManager.java
  
  Index: DefaultCacheManager.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultCacheManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultCacheManager.java  2 Dec 2003 07:56:15 -0000       1.3
  +++ DefaultCacheManager.java  3 Dec 2003 15:01:09 -0000       1.4
  @@ -68,12 +68,12 @@
   
   import javax.naming.directory.Attributes;
   
  -import org.apache.avalon.repository.BlockManifest;
   import org.apache.avalon.repository.Artifact;
   import org.apache.avalon.repository.Repository;
  -import org.apache.avalon.repository.CacheManager;
   import org.apache.avalon.repository.RepositoryException;
   import org.apache.avalon.repository.RepositoryRuntimeException;
  +import org.apache.avalon.repository.provider.BlockManifest;
  +import org.apache.avalon.repository.provider.CacheManager;
   import org.apache.avalon.repository.util.LOADER;
   import org.apache.avalon.repository.util.RepositoryUtils;
   
  
  
  
  1.19      +3 -3      
avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultFactory.java
  
  Index: DefaultFactory.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultFactory.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- DefaultFactory.java       2 Dec 2003 23:03:30 -0000       1.18
  +++ DefaultFactory.java       3 Dec 2003 15:01:09 -0000       1.19
  @@ -69,10 +69,10 @@
   import org.apache.avalon.util.factory.Factory ;
   
   import org.apache.avalon.repository.Repository ;
  -import org.apache.avalon.repository.InitialContext ;
  -import org.apache.avalon.repository.CacheManager ;
   import org.apache.avalon.repository.RepositoryException ;
   import org.apache.avalon.repository.RepositoryRuntimeException;
  +import org.apache.avalon.repository.provider.InitialContext ;
  +import org.apache.avalon.repository.provider.CacheManager ;
   import org.apache.avalon.repository.util.RepositoryUtils ;
   
   import org.apache.avalon.excalibur.i18n.ResourceManager;
  
  
  
  1.4       +2 -2      
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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultRepository.java    2 Dec 2003 07:56:15 -0000       1.3
  +++ DefaultRepository.java    3 Dec 2003 15:01:09 -0000       1.4
  @@ -68,13 +68,13 @@
   
   import javax.naming.directory.Attributes;
   
  -import org.apache.avalon.repository.CacheManager;
   import org.apache.avalon.repository.Artifact;
   import org.apache.avalon.repository.Repository;
   import org.apache.avalon.repository.RepositoryException;
   import org.apache.avalon.repository.RepositoryRuntimeException;
   import org.apache.avalon.repository.meta.FactoryDescriptor;
   import org.apache.avalon.repository.meta.MetaException;
  +import org.apache.avalon.repository.provider.CacheManager;
   import org.apache.avalon.repository.util.LOADER;
   import org.apache.avalon.repository.util.RepositoryUtils;
   
  
  
  
  1.7       +2 -2      
avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/RepositoryCriteria.java
  
  Index: RepositoryCriteria.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/RepositoryCriteria.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RepositoryCriteria.java   2 Dec 2003 23:03:30 -0000       1.6
  +++ RepositoryCriteria.java   3 Dec 2003 15:01:09 -0000       1.7
  @@ -60,7 +60,7 @@
   import java.net.MalformedURLException;
   
   import org.apache.avalon.repository.RepositoryException;
  -import org.apache.avalon.repository.InitialContext;
  +import org.apache.avalon.repository.provider.InitialContext;
   
   import org.apache.avalon.util.defaults.Defaults;
   import org.apache.avalon.util.defaults.DefaultsFinder;
  
  
  
  1.5       +2 -2      
avalon-sandbox/repository/main/src/java/org/apache/avalon/repository/main/AbstractBuilder.java
  
  Index: AbstractBuilder.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/repository/main/src/java/org/apache/avalon/repository/main/AbstractBuilder.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractBuilder.java      2 Dec 2003 23:03:30 -0000       1.4
  +++ AbstractBuilder.java      3 Dec 2003 15:01:09 -0000       1.5
  @@ -63,9 +63,9 @@
   import org.apache.avalon.util.factory.Factory;
   
   import org.apache.avalon.repository.Artifact;
  -import org.apache.avalon.repository.InitialContext;
   import org.apache.avalon.repository.RepositoryException;
   import org.apache.avalon.repository.RepositoryRuntimeException;
  +import org.apache.avalon.repository.provider.InitialContext;
   
   
   /**
  
  
  
  1.6       +3 -3      
avalon-sandbox/repository/main/src/java/org/apache/avalon/repository/main/DefaultBuilder.java
  
  Index: DefaultBuilder.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/repository/main/src/java/org/apache/avalon/repository/main/DefaultBuilder.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DefaultBuilder.java       2 Dec 2003 23:03:30 -0000       1.5
  +++ DefaultBuilder.java       3 Dec 2003 15:01:09 -0000       1.6
  @@ -63,12 +63,12 @@
   import javax.naming.directory.Attributes;
   
   import org.apache.avalon.repository.Artifact;
  -import org.apache.avalon.repository.Builder;
  -import org.apache.avalon.repository.InitialContext;
   import org.apache.avalon.repository.Repository;
   import org.apache.avalon.repository.RepositoryException;
   import org.apache.avalon.repository.RepositoryRuntimeException;
   import org.apache.avalon.repository.meta.FactoryDescriptor;
  +import org.apache.avalon.repository.provider.Builder;
  +import org.apache.avalon.repository.provider.InitialContext;
   import org.apache.avalon.util.env.Env;
   import org.apache.avalon.util.exception.ExceptionHelper;
   import org.apache.avalon.util.factory.Factory;
  
  
  
  1.6       +2 -2      
avalon-sandbox/repository/main/src/java/org/apache/avalon/repository/main/DefaultInitialContext.java
  
  Index: DefaultInitialContext.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/repository/main/src/java/org/apache/avalon/repository/main/DefaultInitialContext.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DefaultInitialContext.java        2 Dec 2003 23:03:30 -0000       1.5
  +++ DefaultInitialContext.java        3 Dec 2003 15:01:09 -0000       1.6
  @@ -75,11 +75,11 @@
   import javax.naming.directory.Attributes;
   
   import org.apache.avalon.repository.Artifact;
  -import org.apache.avalon.repository.InitialContext;
   import org.apache.avalon.repository.Repository;
   import org.apache.avalon.repository.RepositoryException;
   import org.apache.avalon.repository.RepositoryRuntimeException;
   import org.apache.avalon.repository.meta.FactoryDescriptor;
  +import org.apache.avalon.repository.provider.InitialContext;
   import org.apache.avalon.repository.util.LOADER;
   import org.apache.avalon.repository.util.RepositoryUtils;
   
  
  
  
  1.3       +1 -1      avalon-sandbox/repository/site/xdocs/about/api/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/repository/site/xdocs/about/api/index.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index.xml 30 Nov 2003 08:49:32 -0000      1.2
  +++ index.xml 3 Dec 2003 15:01:09 -0000       1.3
  @@ -84,7 +84,7 @@
               <td>Introduction to an artifactt.</td>
             </tr>
             <tr>
  -            <td><a href="roadmap.html">Classloaders</a></td>
  +            <td><a href="classloader.html">Classloaders</a></td>
               <td>Creating classloaders from artifacts.</td>
             </tr>
             <tr>
  
  
  
  1.1                  
avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/provider/BlockManifest.java
  
  Index: BlockManifest.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 [EMAIL PROTECTED]
  
   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.provider;
  
  /**
   * A block manifest that provides a set of convinience operations
   * to access block related attributes.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]">Avalon Development Team</a>
   * @version $Revision: 1.1 $ $Date: 2003/12/03 15:01:09 $
   */
  public interface BlockManifest
  {
  
     /**
      * Group identifier manifest key.
      */
      public static final String BLOCK_GROUP_KEY = "Block-Group";
  
     /**
      * Name identifier manifest key.
      */
      public static final String BLOCK_NAME_KEY = "Block-Name";
  
     /**
      * Version identifier manifest key.
      */
      public static final String BLOCK_VERSION_KEY = "Block-Version";
  
     /**
      * Get the name of the group that the block is a part of.
      * @return the block group
      */
      String getBlockGroup();
  
     /**
      * Get the name the block.
      * @return the block name
      */
      String getBlockName();
  
     /**
      * Get the version of the block.
      * @return the block version
      */
      String getBlockVersion();
  }
  
  
  
  1.1                  
avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/provider/Builder.java
  
  Index: Builder.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 [EMAIL PROTECTED]
  
   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.provider;
  
  import org.apache.avalon.util.factory.Factory;
  
  
  /**
   * The defintion of an application builder.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]">Stephen McConnell</a>
   * @version $Revision: 1.1 $ $Date: 2003/12/03 15:01:09 $
   */
  public interface Builder
  {        
      /**
       * Return the factory established by the builder.
       * 
       * @return the factory
       */
      Factory getFactory();
      
  }
  
  
  
  1.1                  
avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/provider/CacheManager.java
  
  Index: CacheManager.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 [EMAIL PROTECTED]
  
   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.provider;
  
  import java.net.URL;
  import java.io.File;
  
  import org.apache.avalon.repository.Repository;
  import org.apache.avalon.repository.RepositoryException;
  
  /**
   * A service that provides write access to a cache and support
   * for repository creation.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]">Stephen McConnell</a>
   * @version $Revision: 1.1 $ $Date: 2003/12/03 15:01:09 $
   */
  public interface CacheManager
  {        
      /**
       * Return cache root directory.
       * 
       * @return the cache directory
       */
      File getCacheDirectory() ;
      
      /**
       * Install a block archive into the repository.
       * @param url the block archive url
       * @return the block manifest
       */
      BlockManifest install( URL url, StringBuffer buffer ) 
          throws RepositoryException ;
  
     /**
      * Creation of a new repository handler.
      * @param hosts the set of hosts to assign to the repository
      * @return the repository
      * @exception RepositoryException if an error occurs suring repository 
establishment
      */
      Repository createRepository( String[] hosts );
  
  }
  
  
  
  1.1                  
avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/provider/InitialContext.java
  
  Index: InitialContext.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 [EMAIL PROTECTED]
  
   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.provider;
  
  import java.io.File;
  
  import org.apache.avalon.util.factory.Factory;
  
  
  /**
   * The initial context established by an initial repository factory.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]">Stephen McConnell</a>
   * @version $Revision: 1.1 $ $Date: 2003/12/03 15:01:09 $
   */
  public interface InitialContext
  {        
      /**
       * Return cache root directory.
       * 
       * @return the cache directory
       */
      File getInitialCacheDirectory();
      
      /**
       * Return the initial set of host names.
       * @return the host names sequence
       */
      String[] getInitialHosts();
  
     /**
      * Return the initial repository factory.
      * @return the initial repository factory
      */
      Factory getInitialFactory();
  
  }
  
  
  
  1.3       +3 -3      
avalon-sandbox/repository/test/src/test/org/apache/avalon/repository/main/DefaultInitialContextTest.java
  
  Index: DefaultInitialContextTest.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/repository/test/src/test/org/apache/avalon/repository/main/DefaultInitialContextTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultInitialContextTest.java    2 Dec 2003 23:03:31 -0000       1.2
  +++ DefaultInitialContextTest.java    3 Dec 2003 15:01:10 -0000       1.3
  @@ -57,10 +57,10 @@
   import junit.framework.TestCase ;
   
   import org.apache.avalon.repository.Artifact ;
  -import org.apache.avalon.repository.InitialContext ;
   import org.apache.avalon.repository.Repository ;
  -import org.apache.avalon.repository.CacheManager ;
   import org.apache.avalon.repository.RepositoryException ;
  +import org.apache.avalon.repository.provider.CacheManager ;
  +import org.apache.avalon.repository.provider.InitialContext ;
   
   import org.apache.avalon.util.env.Env;
   import org.apache.avalon.util.exception.ExceptionHelper;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to