You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
879 B
35 lines
879 B
package com.fr.plugin.migration.pgsql; |
|
|
|
import com.fr.config.ConfigContext; |
|
import com.fr.config.DefaultConfiguration; |
|
import com.fr.config.Identifier; |
|
import com.fr.config.holder.Conf; |
|
import com.fr.config.holder.factory.Holders; |
|
|
|
/** |
|
* @author lidongy |
|
* @version 10.0 |
|
* Created by lidongy on 2020/11/27 |
|
*/ |
|
public class PGSQLMigrationConfig extends DefaultConfiguration { |
|
|
|
@Identifier(value = "init") |
|
private Conf<Boolean> init = Holders.simple(false); |
|
|
|
private static volatile PGSQLMigrationConfig config = null; |
|
|
|
public static PGSQLMigrationConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(PGSQLMigrationConfig.class); |
|
} |
|
return config; |
|
} |
|
|
|
public Boolean isInit() { |
|
return init.get(); |
|
} |
|
|
|
public void setInit(Boolean init) { |
|
this.init.set(init); |
|
} |
|
} |