package tech.easyflow.datacenter.adapter;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import tech.easyflow.common.util.SpringContextUtil;

@Component
public class DbHandleManager {

    @Value("${easyflow.datacenter.handler:defaultDbHandleService}")
    private String dbHandler;

    public DbHandleService getDbHandler() {
        return SpringContextUtil.getBean(dbHandler);
    }
}
