Package liquibase.util
Class OsgiUtil
- java.lang.Object
-
- liquibase.util.OsgiUtil
-
public final class OsgiUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Class<T>
loadClass(String className)
Tries to load a class under OSGI environment.
-
-
-
Method Detail
-
loadClass
public static <T> Class<T> loadClass(String className) throws ClassNotFoundException
Tries to load a class under OSGI environment. It will attempt to load the class from all Liquibase bundles registered viaActivator
.- Type Parameters:
T
- the type of the class to load- Parameters:
className
- the name of the class to load- Returns:
- the loaded class
- Throws:
ClassNotFoundException
- if the class could not be found
-
-