else if (parameters.containsKey(JcrUtils.REPOSITORY_URI))
uri = parameters.get(JcrUtils.REPOSITORY_URI).toString();
- if (uri != null)
- repository = createRemoteRepository(uri);
+ if (uri != null) {
+ if (uri.startsWith("http"))// http, https
+ repository = createRemoteRepository(uri);
+ else if (uri.startsWith("vm")) {
+ log.warn("URI "
+ + uri
+ + " should have been managed by generic JCR repository factory");
+ repository = getRepositoryByAlias(getAliasFromURI(uri));
+ }
+ }
+ // publish under alias
if (parameters.containsKey(JCR_REPOSITORY_ALIAS)) {
Properties properties = new Properties();
properties.putAll(parameters);
}
/**
- * Called after the repository has been initialized. Does nothing by
+ * Called after the repository has been initialised. Does nothing by
* default.
*/
@SuppressWarnings("rawtypes")