emailAuth push for daoMap

This commit is contained in:
geek 2017-06-07 15:11:45 +09:00
parent ea021a67bd
commit f321bef782

View File

@ -9,6 +9,7 @@ import com.loafle.overflow.commons.dao.JPABaseDAO;
import com.loafle.overflow.db.api.DBGrpc; import com.loafle.overflow.db.api.DBGrpc;
import com.loafle.overflow.db.api.DBInput; import com.loafle.overflow.db.api.DBInput;
import com.loafle.overflow.db.api.DBOutput; import com.loafle.overflow.db.api.DBOutput;
import com.loafle.overflow.email.dao.JPAEmailAuthDAO;
import com.loafle.overflow.member.dao.JPAMemberDAO; import com.loafle.overflow.member.dao.JPAMemberDAO;
import com.loafle.overflow.noauthagent.dao.JPANoAuthAgentDAO; import com.loafle.overflow.noauthagent.dao.JPANoAuthAgentDAO;
import io.grpc.ServerBuilder; import io.grpc.ServerBuilder;
@ -40,12 +41,13 @@ public class DBProxy {
JPAAgentDAO agentDao = new JPAAgentDAO(); JPAAgentDAO agentDao = new JPAAgentDAO();
JPANoAuthAgentDAO jpaNoAuthAgentDAO = new JPANoAuthAgentDAO(); JPANoAuthAgentDAO jpaNoAuthAgentDAO = new JPANoAuthAgentDAO();
JPAApiKeyDao jpaApiKeyDao = new JPAApiKeyDao(); JPAApiKeyDao jpaApiKeyDao = new JPAApiKeyDao();
JPAEmailAuthDAO emailAuthDAO = new JPAEmailAuthDAO();
daoMap.put("member", memberDao); daoMap.put("member", memberDao);
daoMap.put("agent", agentDao); daoMap.put("agent", agentDao);
daoMap.put("noauthAgent", jpaNoAuthAgentDAO); daoMap.put("noauthAgent", jpaNoAuthAgentDAO);
daoMap.put("apiKey", jpaApiKeyDao); daoMap.put("apiKey", jpaApiKeyDao);
daoMap.put("emailAuth", jpaApiKeyDao); daoMap.put("emailAuth", emailAuthDAO);
} }
public void start(int port) throws IOException { public void start(int port) throws IOException {