Package liquibase.parser.core.yaml
Class YamlChangeLogParser
java.lang.Object
liquibase.parser.core.yaml.YamlParser
liquibase.parser.core.yaml.YamlChangeLogParser
- All Implemented Interfaces:
ChangeLogParser,LiquibaseParser,PrioritizedService
- Direct Known Subclasses:
JsonChangeLogParser
-
Field Summary
Fields inherited from class liquibase.parser.core.yaml.YamlParser
logFields inherited from interface liquibase.parser.ChangeLogParser
DATABASE_CHANGE_LOGFields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor) Parses a Liquibase database changelog and returns the parsed form as an object.protected voidreplaceParameters(Object obj, ChangeLogParameters changeLogParameters, DatabaseChangeLog changeLog) Methods inherited from class liquibase.parser.core.yaml.YamlParser
createLoaderOptions, getPriority, getSupportedFileExtensions, supportsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.parser.ChangeLogParser
supportsMethods inherited from interface liquibase.servicelocator.PrioritizedService
getPriority
-
Constructor Details
-
YamlChangeLogParser
public YamlChangeLogParser()
-
-
Method Details
-
parse
public DatabaseChangeLog parse(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor) throws ChangeLogParseException Description copied from interface:ChangeLogParserParses a Liquibase database changelog and returns the parsed form as an object.- Specified by:
parsein interfaceChangeLogParser- Parameters:
physicalChangeLogLocation- the physical location of the changelog. The exact file formats and locations where can load changelog files from depend on the implementations and capabilities of the implementing parsers.changeLogParameters- parameters given by the end user that should be applied while parsing the changelog (i.e. replacement of ${placeholders} inside the changelogs with user-defined content)resourceAccessor- a Java resource accessor- Returns:
- the parsed ChangeLog in object form
- Throws:
ChangeLogParseException- if an error occurs during parsing of the ChangeLog
-
replaceParameters
protected void replaceParameters(Object obj, ChangeLogParameters changeLogParameters, DatabaseChangeLog changeLog) throws ChangeLogParseException - Throws:
ChangeLogParseException
-