Author: antelder
Date: Sun Mar 22 10:13:57 2009
New Revision: 757165

URL: http://svn.apache.org/viewvc?rev=757165&view=rev
Log:
Change to use javax.imageio.spi.ServiceRegistry instead of Sun JDK specific 
sun.misc.Service

Modified:
    
jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/ScriptEngineManager.java

Modified: 
jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/ScriptEngineManager.java
URL: 
http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/ScriptEngineManager.java?rev=757165&r1=757164&r2=757165&view=diff
==============================================================================
--- 
jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/ScriptEngineManager.java
 (original)
+++ 
jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/ScriptEngineManager.java
 Sun Mar 22 10:13:57 2009
@@ -26,7 +26,7 @@
 import java.util.Iterator;
 import java.util.List;
 
-import sun.misc.Service;
+import javax.imageio.spi.ServiceRegistry;
 
 /**
  * See Javadoc of <a 
href="http://java.sun.com/javase/6/docs/api/javax/script/package-summary.html";>Java
 Scripting API</a>
@@ -65,7 +65,7 @@
        }
     
     public ScriptEngineManager(ClassLoader loader) {
-        Iterator iterator = Service.providers(ScriptEngineFactory.class, 
loader);
+        Iterator iterator = 
ServiceRegistry.lookupProviders(ScriptEngineFactory.class, loader);
         
         while (iterator.hasNext()) {
             ScriptEngineFactory factory;



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bsf-dev-h...@jakarta.apache.org

Reply via email to