liquibase.changeset.ChangeSetServiceFactory Maven / Gradle / Ivy
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();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy