public class ClassLoaderFileOpener
extends java.lang.Object
implements liquibase.resource.ResourceAccessor
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(java.lang.ClassLoader cl) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getResourceAsStream(java.lang.String file) |
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String packageName) |
java.lang.ClassLoader |
toClassLoader() |
public ClassLoaderFileOpener(java.lang.ClassLoader cl)
cl
- the ClassLoader
to use for finding files.public java.io.InputStream getResourceAsStream(java.lang.String file) throws java.io.IOException
getResourceAsStream
in interface liquibase.resource.ResourceAccessor
java.io.IOException
public java.util.Enumeration<java.net.URL> getResources(java.lang.String packageName) throws java.io.IOException
getResources
in interface liquibase.resource.ResourceAccessor
java.io.IOException
public java.lang.ClassLoader toClassLoader()
toClassLoader
in interface liquibase.resource.ResourceAccessor
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.