liquibase.parser.SqlParserFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The newest version!
package liquibase.parser;
import liquibase.plugin.AbstractPluginFactory;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class SqlParserFactory extends AbstractPluginFactory {
@Override
protected Class getPluginClass() {
return LiquibaseSqlParser.class;
}
@Override
protected int getPriority(LiquibaseSqlParser obj, Object... args) {
return obj.getPriority();
}
public LiquibaseSqlParser getSqlParser() {
return getPlugin();
}
public void unregister(LiquibaseSqlParser liquibaseSqlParser) {
removeInstance(liquibaseSqlParser);
}
}