package com.dmnlk.doma;

import org.seasar.doma.SingletonConfig;
import org.seasar.doma.jdbc.Config;
import org.seasar.doma.jdbc.dialect.Dialect;
import org.seasar.doma.jdbc.dialect.PostgresDialect;

import javax.sql.DataSource;

/**
 * @author dmnlk
 */
@SingletonConfig
public class AppConfig implements Config {
    private final Dialect dialect;
    @Override
    public DataSource getDataSource() {
        return null;
    }

    @Override
    public Dialect getDialect() {
        return dialect;
    }

    private AppConfig() {
        dialect = new PostgresDialect();
    }
}

@@ -308,16 +308,77 @@
 onfig %7B%0A
+    private static final AppConfig CONFIG = new AppConfig();%0A
     priv
@@ -637,11 +637,83 @@
 );%0A    %7D
+%0A%0A    public static AppConfig singleton() %7B%0A        return CONFIG;%0A    %7D
 %0A%7D%0A

implement method