public class ClassLoaderFileOpener extends Object implements liquibase.FileOpener
OpenmrsClassLoader will be
used to find files (or any other classloader that is passed into the contructor). This allows
liquibase xml files in modules to be found.| Constructor and Description |
|---|
ClassLoaderFileOpener(ClassLoader cl) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getResourceAsStream(String file) |
Enumeration<URL> |
getResources(String packageName) |
ClassLoader |
toClassLoader() |
public ClassLoaderFileOpener(ClassLoader cl)
cl - the ClassLoader to use for finding files.public InputStream getResourceAsStream(String file) throws IOException
getResourceAsStream in interface liquibase.FileOpenerIOExceptionpublic Enumeration<URL> getResources(String packageName) throws IOException
getResources in interface liquibase.FileOpenerIOExceptionpublic ClassLoader toClassLoader()
toClassLoader in interface liquibase.FileOpenerCopyright © 2018 OpenMRS LLC.. All Rights Reserved.