package com.perforce.spark.repository; import spark.Request; import com.perforce.spark.AssetType; public class RepoFactory { static String TYPE = "type"; public static RepoInterface create(Request request) { String typeStr = request.queryParams(TYPE); AssetType type = AssetType.parse(typeStr); switch (type) { case LOCAL: case STREAM: return new PerforceRepo(request); case MAVEN: return new MavenRepo(request); default: return null; } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 15215 | Paul Allen | Added RubyGem pages and tidy up. | ||
#4 | 15094 | Paul Allen | Added support for Proxy and Group. | ||
#3 | 15012 | Paul Allen | Proxy configuration. | ||
#2 | 14723 | Paul Allen | Tidy up deploy/upload | ||
#1 | 14181 | Paul Allen | Lots of updates and refactoring. |