org.granite.scan
Class ServiceLoader<S>

java.lang.Object
  extended by org.granite.scan.ServiceLoader<S>
All Implemented Interfaces:
Iterable<S>

public class ServiceLoader<S>
extends Object
implements Iterable<S>

Author:
Franck WOLFF

Nested Class Summary
static class ServiceLoader.ServicesIterator<S>
           
 
Method Summary
 ServiceLoader.ServicesIterator<S> iterator()
           
static
<S> ServiceLoader<S>
load(Class<S> service)
           
static
<S> ServiceLoader<S>
load(Class<S> service, ClassLoader loader)
           
 void reload()
           
 void setConstructorParameters(Class<?>[] constructorParameterTypes, Object[] constructorParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setConstructorParameters

public void setConstructorParameters(Class<?>[] constructorParameterTypes,
                                     Object[] constructorParameters)

iterator

public ServiceLoader.ServicesIterator<S> iterator()
Specified by:
iterator in interface Iterable<S>

reload

public void reload()

load

public static <S> ServiceLoader<S> load(Class<S> service)

load

public static <S> ServiceLoader<S> load(Class<S> service,
                                        ClassLoader loader)