org.sql.generation.api.vendor.internal
Class ServiceLoader

java.lang.Object
  extended by org.sql.generation.api.vendor.internal.ServiceLoader

public final class ServiceLoader
extends Object

This is a copy from file located Qi4j's bootstrap project, since there is no java.util.ServiceLoader in Java 1.5. This is from org.qi4j.bootstrap.internal package.

Update 27.9.2010 - I (Stanislav Muhametsin) made a small syntactical change to private/protected methods in order to remove compile warnings.

See Also:
http://download.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html

Constructor Summary
ServiceLoader()
           
 
Method Summary
static void addClassloader(ClassLoader loader)
           
<T> T
firstProvider(Class<T> neededType)
           
<T> Iterable<T>
providers(Class<T> neededType)
           
static void removeClassloader(ClassLoader loader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceLoader

public ServiceLoader()
Method Detail

addClassloader

public static void addClassloader(ClassLoader loader)

removeClassloader

public static void removeClassloader(ClassLoader loader)

providers

public <T> Iterable<T> providers(Class<T> neededType)
                      throws IOException
Throws:
IOException

firstProvider

public <T> T firstProvider(Class<T> neededType)
                throws IOException
Throws:
IOException


Copyright © 2010-2012. All Rights Reserved.