Class LiquibaseResourceAccessor
java.lang.Object
org.frankframework.jdbc.migration.LiquibaseResourceAccessor
- All Implemented Interfaces:
AutoCloseable,liquibase.resource.ResourceAccessor
public class LiquibaseResourceAccessor
extends Object
implements liquibase.resource.ResourceAccessor
Liquibase ResourceAccessor that can return a resource supplied at construction time.
This allows to generate scripts from an uploaded changelog file.
- Author:
- Niels Meijer
-
Nested Class Summary
Nested classes/interfaces inherited from interface liquibase.resource.ResourceAccessor
liquibase.resource.ResourceAccessor.NotFoundResource, liquibase.resource.ResourceAccessor.SearchOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<liquibase.resource.Resource> asResourceList(String path, URI uri, ThrowingSupplier<InputStream, IOException> inputStreamSupplier) voidclose()List<liquibase.resource.Resource> List<liquibase.resource.Resource> This method is primarily used by Liquibase to get the xsd (/www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd) to validate against.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.resource.ResourceAccessor
get, getExisting, handleDuplicateFileModeLogging, list, openStream, openStreams, search
-
Constructor Details
-
LiquibaseResourceAccessor
-
-
Method Details
-
search
This method is primarily used by Liquibase to get the xsd (/www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd) to validate against. (the path literally contains www.liquibase.org !) Since the XSD is in the jar file and we do not want to override it, simply return null. Then the default XSD in the Liquibase jar will be used.- Specified by:
searchin interfaceliquibase.resource.ResourceAccessor- Throws:
IOException
-
asResourceList
protected List<liquibase.resource.Resource> asResourceList(String path, URI uri, ThrowingSupplier<InputStream, IOException> inputStreamSupplier) -
getAll
- Specified by:
getAllin interfaceliquibase.resource.ResourceAccessor- Throws:
IOException
-
describeLocations
- Specified by:
describeLocationsin interfaceliquibase.resource.ResourceAccessor
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-