commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1088077 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassDiscover.java
Date Sat, 02 Apr 2011 18:41:26 GMT
Author: simonetripodi
Date: Sat Apr  2 18:41:26 2011
New Revision: 1088077

URL: http://svn.apache.org/viewvc?rev=1088077&view=rev
Log:
added generics: a ResourceClassDiscover finds Iterators of a specified type T

Modified:
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassDiscover.java

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassDiscover.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassDiscover.java?rev=1088077&r1=1088076&r2=1088077&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassDiscover.java
(original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassDiscover.java
Sat Apr  2 18:41:26 2011
@@ -20,19 +20,19 @@ package org.apache.commons.discovery;
 /**
  * @author Richard A. Sitze
  */
-public interface ResourceClassDiscover extends ResourceDiscover
+public interface ResourceClassDiscover<T> extends ResourceDiscover
 {
     /**
      * Locate class resources that are bound to <code>className</code>.
      * 
      * @return ResourceClassIterator
      */
-    ResourceClassIterator findResourceClasses(String className);
+    ResourceClassIterator<T> findResourceClasses(String className);
 
     /**
      * Locate class resources that are bound to <code>resourceNames</code>.
      * 
      * @return ResourceIterator
      */
-    ResourceClassIterator findResourceClasses(ResourceNameIterator className);
+    ResourceClassIterator<T> findResourceClasses(ResourceNameIterator className);
 }



Mime
View raw message