sun.misc
Class Service

java.lang.Object
  extended by sun.misc.Service

public class Service
extends Object

The Service class is a primitive stub of the original sun.misc.Service class used by the javax.script.ScriptEngineManager to find script engine factories in factory service files.

This stub is provided because the original class is not part of the official Java API and may not be available on all platforms. In addition even if the class would be available on the Java platform, it may not be visible inside the OSGi framework. Finally, the org.apache.sling.scripting.resolver bundle implements its own resolution of script engine factories and thus the Service method is not used.


Constructor Summary
Service()
           
 
Method Summary
static
<ProviderType>
Iterator<ProviderType>
providers(Class<ProviderType> type, ClassLoader loader)
          Returns an empty iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()
Method Detail

providers

public static <ProviderType> Iterator<ProviderType> providers(Class<ProviderType> type,
                                                              ClassLoader loader)
                                        throws IOException
Returns an empty iterator

Throws:
IOException


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.