Class OClassLoaderHelper
java.lang.Object
com.orientechnologies.common.util.OClassLoaderHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Iterator<T>lookupProviderWithOrientClassLoader(Class<T> clazz) Switch to the OrientDb classloader before lookups on ServiceRegistry for implementation of the given Class.static <T> Iterator<T>lookupProviderWithOrientClassLoader(Class<T> clazz, ClassLoader orientClassLoader)
-
Constructor Details
-
OClassLoaderHelper
public OClassLoaderHelper()
-
-
Method Details
-
lookupProviderWithOrientClassLoader
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- Parameters:
clazz- the class to lookup foor- Returns:
- an Iterator on the class implementation
-
lookupProviderWithOrientClassLoader
public static <T> Iterator<T> lookupProviderWithOrientClassLoader(Class<T> clazz, ClassLoader orientClassLoader)
-