All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.changeset.ChangeSetServiceFactory Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy