Used another way to implement singleton class config.