core/src/main/java/com/orientechnologies/common/util/OClassLoaderHelper.java
public static synchronized <T extends Object> Iterator<T> lookupProviderWithOrientClassLoader(Class<T> clazz) {

    return lookupProviderWithOrientClassLoader(clazz, OClassLoaderHelper.class.getClassLoader());
  }
public static synchronized <T extends Object> Iterator<T> lookupProviderWithOrientClassLoader(Class<T> clazz) {

    return lookupProviderWithOrientClassLoader(clazz, OClassLoaderHelper.class.getClassLoader());
  }
public static synchronized < T extends Object > Iterator < T > lookupProviderWithOrientClassLoader ( Class < T > clazz ) { return lookupProviderWithOrientClassLoader ( clazz , OClassLoaderHelper . class . getClassLoader ( ) ) ; }
Switch to the OrientDb classloader before lookups on ServiceRegistry for implementation of the given Class. Useful under OSGI
and generally under applications where jars are loaded by another class loader

@param clazz
the class to lookup foor
@return an Iterator on the class implementation
Switch to the OrientDb classloader before lookups on ServiceRegistry for implementation of the given Class . Useful under OSGI and generally under applications where jars are loaded by another class loader