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/07 04:15:16 UTC
cvs commit: avalon/repository/spi/src/java/org/apache/avalon/repository/provider CacheManager.java InitialContext.java
mcconnell 2003/12/06 19:15:16
Modified: repository/spi/src/java/org/apache/avalon/repository/provider
CacheManager.java InitialContext.java
Log:
Update factory to return a CacheManager instead of a Repository so that consumer components can do privaliged things like resource installation.
Revision Changes Path
1.2 +7 -2 avalon/repository/spi/src/java/org/apache/avalon/repository/provider/CacheManager.java
Index: CacheManager.java
===================================================================
RCS file: /home/cvs/avalon/repository/spi/src/java/org/apache/avalon/repository/provider/CacheManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CacheManager.java 4 Dec 2003 19:34:56 -0000 1.1
+++ CacheManager.java 7 Dec 2003 03:15:16 -0000 1.2
@@ -81,10 +81,15 @@
throws RepositoryException ;
/**
+ * Creation of a new repository handler using the default hosts.
+ * @return the repository
+ */
+ Repository createRepository();
+
+ /**
* 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.3 +12 -1 avalon/repository/spi/src/java/org/apache/avalon/repository/provider/InitialContext.java
Index: InitialContext.java
===================================================================
RCS file: /home/cvs/avalon/repository/spi/src/java/org/apache/avalon/repository/provider/InitialContext.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- InitialContext.java 6 Dec 2003 23:51:08 -0000 1.2
+++ InitialContext.java 7 Dec 2003 03:15:16 -0000 1.3
@@ -61,6 +61,17 @@
*/
public interface InitialContext
{
+ /**
+ * The property key used when resolving the default cache directory.
+ */
+ String CACHE_KEY = "avalon.repository.cache";
+
+ /**
+ * The property key used when evaluating the default remote hosts. The
+ * value assigned to this property is a comma seperated list of urls.
+ */
+ String HOSTS_KEY = "avalon.repository.hosts";
+
/**
* Return cache root directory.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org