code.onehippo.org is currently readonly. We are migrating to code.bloomreach.com, please continue working there on Monday 14/12. See: https://docs.bloomreach.com/display/engineering/GitLab

Commit 6c3b3782 authored by Ate Douma's avatar Ate Douma

REPO-1756 drop support for long time outdated and no longer available...

REPO-1756 drop support for long time outdated and no longer available BootstrapHippoRepository and ProxyHippoRepository
parent 47c3845c
......@@ -138,51 +138,10 @@ public class HippoRepositoryFactory {
}
}
if(location.startsWith("bootstrap:")) {
try {
location = location.substring("bootstrap:".length());
return (HippoRepository) Class.forName("org.hippoecm.repository.BootstrapHippoRepository").getMethod("create", new Class[] { String.class }).invoke(null, new Object[] { location });
} catch(ClassNotFoundException ex) {
throw new RepositoryException(ex);
} catch(NoSuchMethodException ex) {
throw new RepositoryException(ex);
} catch(IllegalAccessException ex) {
throw new RepositoryException(ex);
} catch(InvocationTargetException ex) {
if (ex.getCause() instanceof RepositoryException) {
throw (RepositoryException) ex.getCause();
} else if (ex.getCause() instanceof IllegalArgumentException) {
throw new RepositoryException("Invalid data: " + ex.getCause());
} else {
throw new RepositoryException("unchecked exception: " + ex.getMessage());
}
}
}
if(location.startsWith("vm:")) {
return VMHippoRepository.create(location);
}
if(location.startsWith("proxy:")) {
try {
return (HippoRepository) Class.forName("org.hippoecm.repository.proxyrepository.ProxyHippoRepository").getMethod("create", new Class[] { String.class }).invoke(null, new Object[] { location });
} catch(ClassNotFoundException ex) {
throw new RepositoryException(ex);
} catch(NoSuchMethodException ex) {
throw new RepositoryException(ex);
} catch(IllegalAccessException ex) {
throw new RepositoryException(ex);
} catch(InvocationTargetException ex) {
if (ex.getCause() instanceof RepositoryException) {
throw (RepositoryException) ex.getCause();
} else if (ex.getCause() instanceof IllegalArgumentException) {
throw new RepositoryException("Invalid data: " + ex.getCause());
} else {
throw new RepositoryException("unchecked exception: " + ex.getClass().getName() + ": " + ex.getMessage(), ex);
}
}
}
// embedded/local with location
try {
repository = (HippoRepository) getLocalHippoRepositoryClass().getMethod("create", new Class[] { String.class }).invoke(null, new Object[] { location });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment