use of org.apache.jackrabbit.spi.IdFactory in project jackrabbit by apache.
the class RepositoryStubImpl method createService.
protected RepositoryService createService(String uri) throws RepositoryException {
IdFactory idFactory = IdFactoryImpl.getInstance();
NameFactory nFactory = NameFactoryImpl.getInstance();
PathFactory pFactory = PathFactoryImpl.getInstance();
QValueFactory vFactory = QValueFactoryImpl.getInstance();
return new RepositoryServiceImpl(uri, idFactory, nFactory, pFactory, vFactory);
}
use of org.apache.jackrabbit.spi.IdFactory in project jackrabbit by apache.
the class ServiceStubImpl method getRepositoryService.
@Override
public RepositoryService getRepositoryService() throws RepositoryException {
if (service == null) {
String uri = getProperty(PROP_REPOSITORY_URI);
IdFactory idFactory = IdFactoryImpl.getInstance();
NameFactory nFactory = NameFactoryImpl.getInstance();
PathFactory pFactory = PathFactoryImpl.getInstance();
QValueFactory vFactory = QValueFactoryImpl.getInstance();
service = new RepositoryServiceImpl(uri, idFactory, nFactory, pFactory, vFactory);
}
return service;
}
Aggregations