#!/usr/bin/env python

from lib.ConfigLoader import ConfigLoader
from resources.MySql import MySql

class Resources(object):
    @staticmethod
    def configs():
        return [MySql.config()]

    def __init__(self, logger, configs):
        self.logger = logger
        mysql_config = ConfigLoader.get_config_by_type(configs, type(MySql.config()))
        self.db_loader = lambda : MySql(logger, mysql_config)
