com.hazelcast.util
Class ServiceLoader

java.lang.Object
  extended by com.hazelcast.util.ServiceLoader

public final class ServiceLoader
extends Object

Support class for loading Hazelcast services and hooks based on the Java ServiceLoader specification but changed in the fact of classloaders to test for given services to work in multi classloader environments like application or OSGi servers


Method Summary
static
<T> Iterator<T>
iterator(Class<T> clazz, String factoryId, ClassLoader classLoader)
           
static
<T> T
load(Class<T> clazz, String factoryId, ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static <T> T load(Class<T> clazz,
                         String factoryId,
                         ClassLoader classLoader)
              throws Exception
Throws:
Exception

iterator

public static <T> Iterator<T> iterator(Class<T> clazz,
                                       String factoryId,
                                       ClassLoader classLoader)
                            throws Exception
Throws:
Exception


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.