use of org.apache.jackrabbit.test.RepositoryStubException in project jackrabbit by apache.
the class RepositoryStubImpl method getRepository.
@Override
public synchronized Repository getRepository() throws RepositoryStubException {
if (repository == null) {
try {
String url = environment.getProperty(PROP_REPOSITORY_URL);
final RepositoryService service = createService(url);
repository = RepositoryImpl.create(new AbstractRepositoryConfig() {
public RepositoryService getRepositoryService() {
return service;
}
});
} catch (Exception e) {
throw new RepositoryStubException(e);
}
}
return repository;
}
Aggregations