{"size": 364, "ext": "js", "max_stars_repo_path": "framework/adapters.js", "max_stars_repo_name": "hediant/collector", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "framework/adapters.js", "max_issues_repo_name": "hediant/collector", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "framework/adapters.js", "max_forks_repo_name": "hediant/collector", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.2, "max_line_length": 50, "alphanum_fraction": 0.6923076923}
// demo adapter
exports.demoAdapter1 = require('./adapters/demo');

//
// name - string, adapter name
// adapter - object
//		实现了adapter/demo 功能的函数对象
//
exports.add = function (name, adapter){
	exports[name] = adapter;
	return exports.get(name);
}

exports.remove = function (name){
	delete exports[name];
}

exports.get = function (name){
	return exports[name];
}