Search in sources :

Example 6 with IdFactory

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);
}
Also used : IdFactory(org.apache.jackrabbit.spi.IdFactory) PathFactory(org.apache.jackrabbit.spi.PathFactory) QValueFactory(org.apache.jackrabbit.spi.QValueFactory) NameFactory(org.apache.jackrabbit.spi.NameFactory)

Example 7 with IdFactory

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;
}
Also used : IdFactory(org.apache.jackrabbit.spi.IdFactory) PathFactory(org.apache.jackrabbit.spi.PathFactory) QValueFactory(org.apache.jackrabbit.spi.QValueFactory) NameFactory(org.apache.jackrabbit.spi.NameFactory)

Aggregations

IdFactory (org.apache.jackrabbit.spi.IdFactory)7 PathFactory (org.apache.jackrabbit.spi.PathFactory)5 RepositoryException (javax.jcr.RepositoryException)3 NameFactory (org.apache.jackrabbit.spi.NameFactory)3 QValueFactory (org.apache.jackrabbit.spi.QValueFactory)3 PathNotFoundException (javax.jcr.PathNotFoundException)2 Name (org.apache.jackrabbit.spi.Name)2 NodeId (org.apache.jackrabbit.spi.NodeId)2 Path (org.apache.jackrabbit.spi.Path)2 PathBuilder (org.apache.jackrabbit.spi.commons.name.PathBuilder)2 PropertyId (org.apache.jackrabbit.spi.PropertyId)1