You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/04/03 00:00:12 UTC
svn commit: r1088152 -
/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/Service.java
Author: simonetripodi
Date: Sat Apr 2 22:00:11 2011
New Revision: 1088152
URL: http://svn.apache.org/viewvc?rev=1088152&view=rev
Log:
removed trailing spaces
Modified:
commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/Service.java
Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/Service.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/Service.java?rev=1088152&r1=1088151&r2=1088152&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/Service.java (original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/Service.java Sat Apr 2 22:00:11 2011
@@ -29,7 +29,7 @@ import org.apache.commons.discovery.reso
/**
* [this was ServiceDiscovery12... the 1.1 versus 1.2 issue
* has been abstracted to org.apache.commons.discover.jdk.JDKHooks]
- *
+ *
* <p>Implement the JDK1.3 'Service Provider' specification.
* ( http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html )
* </p>
@@ -54,7 +54,7 @@ public class Service
*/
protected Service() {
}
-
+
/**
* as described in
* sun/jdk1.3.1/docs/guide/jar/jar.html#Service Provider,
@@ -66,7 +66,7 @@ public class Service
public static <T, S extends T> Enumeration<S> providers(Class<T> spiClass) {
return providers(new SPInterface<T>(spiClass), null);
}
-
+
/**
* This version lets you specify constructor arguments..
*
@@ -82,23 +82,23 @@ public class Service
Service.class,
true);
}
-
+
ResourceNameIterator servicesIter =
(new DiscoverServiceNames(loaders)).findResourceNames(spi.getSPName());
final ResourceClassIterator<T> services =
(new DiscoverClasses<T>(loaders)).findResourceClasses(servicesIter);
-
+
return new Enumeration<S>() {
private S object = null;
-
+
public boolean hasMoreElements() {
if (object == null) {
object = getNextClassInstance();
}
return object != null;
}
-
+
public S nextElement() {
S obj = object;
object = null;