geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1089934 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/ClasspathArchive.java
Date Thu, 07 Apr 2011 16:23:20 GMT
Author: dblevins
Date: Thu Apr  7 16:23:20 2011
New Revision: 1089934

URL: http://svn.apache.org/viewvc?rev=1089934&view=rev
Log:
convenience method for single url scanning

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/ClasspathArchive.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/ClasspathArchive.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/ClasspathArchive.java?rev=1089934&r1=1089933&r2=1089934&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/ClasspathArchive.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/ClasspathArchive.java
Thu Apr  7 16:23:20 2011
@@ -81,6 +81,10 @@ public class ClasspathArchive extends Co
         return archives;
     }
 
+    public static List<Archive> archives(ClassLoader loader, URL... urls) {
+        return archives(loader, Arrays.asList(urls));
+    }
+
     @Override
     public InputStream getBytecode(String className) throws IOException, ClassNotFoundException
{
         int pos = className.indexOf("<");



Mime
View raw message