All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.coder.aliyun.AcsClient Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
package cn.coder.aliyun;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.coder.aliyun.service.DefaultAcsClient;

public class AcsClient {

	private static final Logger logger = LoggerFactory.getLogger(AcsClient.class);
	private static DefaultAcsClient acs;

	public static DefaultAcsClient getInstance() {
		return acs;
	}

	public static void register(String accessKeyId, String secretAccessKey) {
		acs = new DefaultAcsClient(accessKeyId, secretAccessKey);
		if(logger.isDebugEnabled())
			logger.debug("ACS client registered");
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy