/** * Creates a new virtual node type state manager * * @param ntReg * @param obs * @param rootNodeId * @param parentId */ public VirtualNodeTypeStateManager( NodeTypeRegistry ntReg, DelegatingObservationDispatcher obs, NodeId rootNodeId, NodeId parentId) { this.ntReg = ntReg; this.obsDispatcher = obs; this.rootNodeId = rootNodeId; this.parentId = parentId; ntReg.addListener(this); }
/** * Creates a new virtual node type state manager * * @param ntReg * @param obs * @param rootNodeId * @param parentId */ public VirtualNodeTypeStateManager( NodeTypeRegistry ntReg, DelegatingObservationDispatcher obs, NodeId rootNodeId, NodeId parentId) { this.ntReg = ntReg; this.obsDispatcher = obs; this.rootNodeId = rootNodeId; this.parentId = parentId; ntReg.addListener(this); }
resolver = new ParsingNameResolver(NameFactoryImpl.getInstance(), nsResolver); ntReg = context.getNodeTypeRegistry(); ntReg.addListener(this);
return; context.getNodeTypeRegistry().addListener( new NodeTypeRegistryListener() { @Override
public NodeTypeChangesMonitor(final AutoExportConfig autoExportConfig) throws RepositoryException { this.autoExportConfig = autoExportConfig; monitorSession = autoExportConfig.createImpersonatedSession(); InternalHippoRepository internalHippoRepository = (InternalHippoRepository) RepositoryDecorator.unwrap(monitorSession.getRepository()); ntRegistry = internalHippoRepository.getNodeTypeRegistry(); ntRegistry.addListener(this); }
resolver = new ParsingNameResolver(NameFactoryImpl.getInstance(), nsResolver); ntReg = context.getNodeTypeRegistry(); ntReg.addListener(this);
this.parentHandler = parentHandler; this.excludedNodeId = excludedNodeId; ntRegistry.addListener(propRegistry);
/** * Creates a new <code>NodeTypeManagerImpl</code> instance. * * @param context the session context */ @SuppressWarnings("unchecked") public NodeTypeManagerImpl(SessionContext context) { this.context = context; // setup caches with soft references to node type // & item definition instances ntCache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT); pdCache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT); ndCache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT); NodeTypeRegistry registry = context.getNodeTypeRegistry(); rootNodeDef = new NodeDefinitionImpl( registry.getRootNodeDef(), this, context); ndCache.put(rootNodeDef.unwrap(), rootNodeDef); registry.addListener(this); }
/** * Creates a new <code>NodeTypeManagerImpl</code> instance. * * @param context the session context */ @SuppressWarnings("unchecked") public NodeTypeManagerImpl(SessionContext context) { this.context = context; // setup caches with soft references to node type // & item definition instances ntCache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT); pdCache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT); ndCache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT); NodeTypeRegistry registry = context.getNodeTypeRegistry(); rootNodeDef = new NodeDefinitionImpl( registry.getRootNodeDef(), this, context); ndCache.put(rootNodeDef.unwrap(), rootNodeDef); registry.addListener(this); }
this.parentHandler = parentHandler; this.excludedNodeId = excludedNodeId; ntRegistry.addListener(propRegistry);