Class OsgiUtil


  • public final class OsgiUtil
    extends Object
    • 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 via Activator.
        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