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
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<liquibase.resource.Resource>
asResourceList
(String path, URI uri, ThrowingSupplier<InputStream, IOException> inputStreamSupplier) void
close()
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, wait
Methods 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:
search
in interfaceliquibase.resource.ResourceAccessor
- Throws:
IOException
-
asResourceList
protected List<liquibase.resource.Resource> asResourceList(String path, URI uri, ThrowingSupplier<InputStream, IOException> inputStreamSupplier) -
getAll
- Specified by:
getAll
in interfaceliquibase.resource.ResourceAccessor
- Throws:
IOException
-
describeLocations
- Specified by:
describeLocations
in interfaceliquibase.resource.ResourceAccessor
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-