
(function() {
	
	whitecrow.plugins = {
		list:{},
		register:function(name,plugin){
			if(!this.list[name]){
				this.list[name] = plugin;
			}
			else
				throw new Error("Plugin '"+name+"' already exits");
			return this;
		},
		getFromNames:function(arrayOfName){
			var result = {};
			for(var i = 0;i<arrayOfName.length;i++){
				var name = arrayOfName[i];
				result[name] = this.list[name]
			}
			return result;
		}
	}


	

})();