liquibase.changeset.ChangeSetServiceFactory 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.
package liquibase.changeset;
import liquibase.plugin.AbstractPluginFactory;
/**
*
* Create the appropriate ChangeSetService instance
*
*/
public class ChangeSetServiceFactory extends AbstractPluginFactory {
private static ChangeSetServiceFactory factory = null;
private ChangeSetServiceFactory() {
}
public static ChangeSetServiceFactory getInstance() {
if (factory == null) {
factory = new ChangeSetServiceFactory();
}
return factory;
}
@Override
protected Class getPluginClass() {
return ChangeSetService.class;
}
@Override
protected int getPriority(ChangeSetService obj, Object... args) {
return obj.getPriority();
}
public ChangeSetService createChangeSetService() {
return getPlugin();
}
}