public Object call() throws RepositoryException { return service.getNameFactory(); } }, "getNameFactory()", new Object[]{});
public Object call() throws RepositoryException { return service.getNameFactory(); } }, "getNameFactory()", new Object[]{});
public NameFactory getNameFactory() throws RepositoryException { return repositoryService.getNameFactory(); }
public void testGetNameFactory() throws RepositoryException { assertNotNull(service.getNameFactory()); }
public WorkspaceManager(RepositoryConfig config, SessionInfo sessionInfo, boolean observationSupported) throws RepositoryException { this.config = config; this.service = config.getRepositoryService(); this.sessionInfo = sessionInfo; this.observationSupported = observationSupported; this.nameFactory = service.getNameFactory(); this.pathFactory = service.getPathFactory(); idFactory = service.getIdFactory(); nsRegistry = new NamespaceRegistryImpl(this); ntRegistry = createNodeTypeRegistry(nsRegistry); definitionProvider = createDefinitionProvider(getEffectiveNodeTypeProvider()); TransientItemStateFactory stateFactory = createItemStateFactory(); this.isf = stateFactory; this.hierarchyManager = createHierarchyManager(stateFactory, idFactory); // If cache behavior is observation register a hierarchy listener which is // notified about all changes. Otherwise just add a hierarchy listener which // is only notified on changes for which client event listeners have been // installed. Note: this listener has to be the first one called in order // for the hierarchy to be consistent with the event (See JCR-2293). InternalEventListener listener = createHierarchyListener(hierarchyManager); CacheBehaviour cacheBehaviour = config.getCacheBehaviour(); if (cacheBehaviour == CacheBehaviour.OBSERVATION) { addEventListener(listener); } else { listeners.add(listener); } }
public WorkspaceManager(RepositoryConfig config, SessionInfo sessionInfo, boolean observationSupported) throws RepositoryException { this.config = config; this.service = config.getRepositoryService(); this.sessionInfo = sessionInfo; this.observationSupported = observationSupported; this.nameFactory = service.getNameFactory(); this.pathFactory = service.getPathFactory(); idFactory = service.getIdFactory(); nsRegistry = new NamespaceRegistryImpl(this); ntRegistry = createNodeTypeRegistry(nsRegistry); definitionProvider = createDefinitionProvider(getEffectiveNodeTypeProvider()); TransientItemStateFactory stateFactory = createItemStateFactory(); this.isf = stateFactory; this.hierarchyManager = createHierarchyManager(stateFactory, idFactory); // If cache behavior is observation register a hierarchy listener which is // notified about all changes. Otherwise just add a hierarchy listener which // is only notified on changes for which client event listeners have been // installed. Note: this listener has to be the first one called in order // for the hierarchy to be consistent with the event (See JCR-2293). InternalEventListener listener = createHierarchyListener(hierarchyManager); CacheBehaviour cacheBehaviour = config.getCacheBehaviour(); if (cacheBehaviour == CacheBehaviour.OBSERVATION) { addEventListener(listener); } else { listeners.add(listener); } }
protected void setUp() throws Exception { super.setUp(); RepositoryService service = helper.getRepositoryService(); factory = service.getQValueFactory(); rootPath = service.getPathFactory().getRootPath(); testName = service.getNameFactory().create(Name.NS_JCR_URI, "data"); reference = getProperty("reference"); }
protected void setUp() throws Exception { super.setUp(); RepositoryService service = helper.getRepositoryService(); factory = service.getQValueFactory(); rootPath = service.getPathFactory().getRootPath(); testName = service.getNameFactory().create(Name.NS_JCR_URI, "data"); reference = getProperty("reference"); }