use of org.collectionspace.chain.csp.persistence.file.FileStorage in project application by collectionspace.
the class TenantServlet method register_csps.
/* Not in the constructor because errors during construction of servlets tend to get lost in a mess of startup.
* Better present it on first request.
*/
protected void register_csps(String tenantId) throws IOException, DocumentException {
if (!tenantCSPM.containsKey(tenantId)) {
tenantCSPM.put(tenantId, new CSPManagerImpl());
}
tenantCSPM.get(tenantId).register(new CoreConfig());
tenantCSPM.get(tenantId).register(new FileStorage());
tenantCSPM.get(tenantId).register(new ServicesStorageGenerator());
tenantCSPM.get(tenantId).register(new WebUI());
tenantCSPM.get(tenantId).register(new Spec());
}
Aggregations