akarasulu 2003/11/10 22:08:33
Modified: repository/api/src/test/org/apache/avalon/repository
InitialRepositoryFactoryTest.java
repository/api/src/java/org/apache/avalon/repository
Repository.java
Log:
Revision Changes Path
1.4 +2 -2
avalon-sandbox/repository/api/src/test/org/apache/avalon/repository/InitialRepositoryFactoryTest.java
Index: InitialRepositoryFactoryTest.java
===================================================================
RCS file:
/home/cvs/avalon-sandbox/repository/api/src/test/org/apache/avalon/repository/InitialRepositoryFactoryTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- InitialRepositoryFactoryTest.java 11 Nov 2003 00:28:03 -0000 1.3
+++ InitialRepositoryFactoryTest.java 11 Nov 2003 06:08:33 -0000 1.4
@@ -95,7 +95,7 @@
super(arg0);
}
- public void testRepositoryLoader() throws Exception
+ public void testInitialRepositoryFactory() throws Exception
{
RepositoryFactory l_factory = new InitialRepositoryFactory() ;
assertNotNull( l_factory ) ;
1.4 +16 -1
avalon-sandbox/repository/api/src/java/org/apache/avalon/repository/Repository.java
Index: Repository.java
===================================================================
RCS file:
/home/cvs/avalon-sandbox/repository/api/src/java/org/apache/avalon/repository/Repository.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Repository.java 11 Nov 2003 03:15:31 -0000 1.3
+++ Repository.java 11 Nov 2003 06:08:33 -0000 1.4
@@ -97,6 +97,21 @@
throws RepositoryException ;
/**
+ * Creates a ClassLoader chain returning the lowest ClassLoader containing
+ * the jar artifact in the loader's path. The dependencies of the argument
+ * artifact jar and an api, spi and implementation attribute on the jar and
+ * its dependencies are used to construct the ClassLoaders.
+ *
+ *
+ * @param a_artifact the artifact to build a ClassLoader for
+ * @return the lowest ClassLoader in a chain
+ * @throws RepositoryException if there is a problem caching and accessing
+ * repository artifacts and reading their attributes.
+ */
+ ClassLoader getClassLoader( JarDescriptor a_artifact )
+ throws RepositoryException ;
+
+ /**
* Return the repository location.
*
* @return the location
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]