Examples of NamespaceRegistryImpl


Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

   {
      List<WorkspaceEntry> wsEntries = config.getWorkspaceEntries();

      NodeTypeDataManager typeManager =
               (NodeTypeDataManager) this.getComponentInstanceOfType(NodeTypeDataManager.class);
      NamespaceRegistryImpl namespaceRegistry =
               (NamespaceRegistryImpl) this.getComponentInstanceOfType(NamespaceRegistry.class);

      for (WorkspaceEntry ws : wsEntries)
      {
         initWorkspace(ws);
         WorkspaceContainer workspaceContainer = getWorkspaceContainer(ws.getName());
         SearchManager searchManager =
                  (SearchManager) workspaceContainer.getComponentInstanceOfType(SearchManager.class);
         if (searchManager != null)
         {
            typeManager.addQueryHandler(searchManager.getHandler());
            namespaceRegistry.addQueryHandler(searchManager.getHandler());
         }
         else
         {
            log.warn("Search manager not configured for " + ws.getName());
         }
      }

      SystemSearchManagerHolder searchManager =
               (SystemSearchManagerHolder) this.getComponentInstanceOfType(SystemSearchManagerHolder.class);
      if (searchManager != null)
      {
         typeManager.addQueryHandler(searchManager.get().getHandler());
         namespaceRegistry.addQueryHandler(searchManager.get().getHandler());
      }
      else
      {
         log.warn("System search manager not configured ");
      }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

    *
    * @throws RepositoryException
    */
   private void load() throws RepositoryException
   {
      NamespaceRegistryImpl nsRegistry = (NamespaceRegistryImpl) getNamespaceRegistry();

      NodeTypeDataPersister nodeTypeDataPersister =
               (NodeTypeDataPersister) getComponentInstanceOfType(NodeTypeDataPersister.class);

      // Load from persistence
      nsRegistry.loadFromStorage();
      nodeTypeDataPersister.loadFromStorage();
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

   public void setUp() throws Exception
   {
      if (factory == null)
      {
         namespaceRegistry = new NamespaceRegistryImpl();
         factory = new LocationFactory(namespaceRegistry);
      }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

   private void init() throws RepositoryException, RepositoryConfigurationException
   {
      List<WorkspaceEntry> wsEntries = config.getWorkspaceEntries();

      NodeTypeDataManager typeManager = (NodeTypeDataManager)this.getComponentInstanceOfType(NodeTypeDataManager.class);
      NamespaceRegistryImpl namespaceRegistry =
         (NamespaceRegistryImpl)this.getComponentInstanceOfType(NamespaceRegistry.class);

      for (WorkspaceEntry ws : wsEntries)
      {
         initWorkspace(ws);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

   private void load() throws RepositoryException
   {
      //Namespaces first
      NamespaceDataPersister namespacePersister =
         (NamespaceDataPersister)this.getComponentInstanceOfType(NamespaceDataPersister.class);
      NamespaceRegistryImpl nsRegistry = (NamespaceRegistryImpl)getNamespaceRegistry();

      namespacePersister.start();
      nsRegistry.start();

      //Node types now.
      JCRNodeTypeDataPersister nodeTypePersister =
         (JCRNodeTypeDataPersister)this.getComponentInstanceOfType(JCRNodeTypeDataPersister.class);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

   private void init() throws RepositoryException, RepositoryConfigurationException
   {
      List<WorkspaceEntry> wsEntries = config.getWorkspaceEntries();

      NodeTypeDataManager typeManager = (NodeTypeDataManager)this.getComponentInstanceOfType(NodeTypeDataManager.class);
      NamespaceRegistryImpl namespaceRegistry =
         (NamespaceRegistryImpl)this.getComponentInstanceOfType(NamespaceRegistry.class);

      for (WorkspaceEntry ws : wsEntries)
      {
         initWorkspace(ws);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

      // Load from persistence
      nodeTypePersister.start();
      namespacePersister.start();

      NamespaceRegistryImpl nsRegistry = (NamespaceRegistryImpl)getNamespaceRegistry();
      NodeTypeDataManagerImpl ntManager =
         (NodeTypeDataManagerImpl)this.getComponentInstanceOfType(NodeTypeDataManagerImpl.class);
      // initialize internal components.
      nsRegistry.start();
      ntManager.start();

   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

   private void init() throws RepositoryException, RepositoryConfigurationException
   {
      List<WorkspaceEntry> wsEntries = config.getWorkspaceEntries();

      NodeTypeDataManager typeManager = (NodeTypeDataManager)this.getComponentInstanceOfType(NodeTypeDataManager.class);
      NamespaceRegistryImpl namespaceRegistry =
         (NamespaceRegistryImpl)this.getComponentInstanceOfType(NamespaceRegistry.class);

      for (WorkspaceEntry ws : wsEntries)
      {
         initWorkspace(ws);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

   private void load() throws RepositoryException
   {
      //Namespaces first
      NamespaceDataPersister namespacePersister =
         (NamespaceDataPersister)this.getComponentInstanceOfType(NamespaceDataPersister.class);
      NamespaceRegistryImpl nsRegistry = (NamespaceRegistryImpl)getNamespaceRegistry();

      namespacePersister.start();
      nsRegistry.start();

      //Node types now.
      JCRNodeTypeDataPersister nodeTypePersister =
         (JCRNodeTypeDataPersister)this.getComponentInstanceOfType(JCRNodeTypeDataPersister.class);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl

   private void init() throws RepositoryException, RepositoryConfigurationException
   {
      List<WorkspaceEntry> wsEntries = config.getWorkspaceEntries();

      NodeTypeDataManager typeManager = (NodeTypeDataManager)this.getComponentInstanceOfType(NodeTypeDataManager.class);
      NamespaceRegistryImpl namespaceRegistry =
         (NamespaceRegistryImpl)this.getComponentInstanceOfType(NamespaceRegistry.class);

      for (WorkspaceEntry ws : wsEntries)
      {
         initWorkspace(ws);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.