Examples of RepositoryConfig


Examples of org.apache.jackrabbit.jcr2spi.config.RepositoryConfig

        if (serviceFactory == null && configParam == null) {
            return null;
        }

        RepositoryConfig config;
        if (configParam instanceof RepositoryConfig) {
            config = (RepositoryConfig) configParam;
            if (serviceFactory != null) {
                log.warn("Ignoring {} since {} was specified", PARAM_REPOSITORY_SERVICE_FACTORY,
                        PARAM_REPOSITORY_CONFIG);
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.config.RepositoryConfig

     * for details.
     *
     * @see RepositoryFactory#getRepository(java.util.Map)
     */
    public Repository getRepository(Map parameters) throws RepositoryException {
        RepositoryConfig config = null;
        if (parameters == null) {
            config = org.apache.jackrabbit.client.spi2davex.RepositoryConfigImpl.create((Map) null);
        } else {
            Object param = parameters.get(REPOSITORY_CONFIG);
            if (param != null && param instanceof RepositoryConfig) {
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.config.RepositoryConfig

            // server is running. ok.
        }
    }

    public void testGetRepository() throws RepositoryException {
        RepositoryConfig config = new AbstractRepositoryConfig() {
            public RepositoryService getRepositoryService() throws RepositoryException {
                return service;
            }
        };
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.config.RepositoryConfig

        Repository repo = factory.getRepository(Collections.singletonMap(RepositoryFactoryImpl.REPOSITORY_CONFIG, config));
        assertNotNull(repo);
    }

    public void testGetRepositoryWithLogger() throws RepositoryException {
        RepositoryConfig config = new AbstractRepositoryConfig() {
            public RepositoryService getRepositoryService() throws RepositoryException {
                return service;
            }
        };
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.config.RepositoryConfig

            // server is running. ok.
        }
    }

    public void testGetRepository() throws RepositoryException {
        RepositoryConfig config = new AbstractRepositoryConfig() {
            public RepositoryService getRepositoryService() throws RepositoryException {
                return service;
            }
        };
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.config.RepositoryConfig

        Repository repo = factory.getRepository(Collections.singletonMap(RepositoryFactoryImpl.REPOSITORY_CONFIG, config));
        assertNotNull(repo);
    }

    public void testGetRepositoryWithLogger() throws RepositoryException {
        RepositoryConfig config = new AbstractRepositoryConfig() {
            public RepositoryService getRepositoryService() throws RepositoryException {
                return service;
            }
        };
View Full Code Here

Examples of org.eclipse.jgit.lib.RepositoryConfig

        return repo == null ? null : repo.getConfig();
    }

    public boolean addRepositoryActions(JMenu menu, CustomActionBuilder builder) {
        RepositoryConfig config = getRepositoryConfig(builder.getContext());
        int actions = 0;

        for (String action : config.getSubsections("nbgit")) {
            if (action.startsWith("action") && load(builder, config, action)) {
                menu.add(builder.build());
                actions++;
            }
        }
View Full Code Here

Examples of org.openrdf.repository.config.RepositoryConfig

    RepositoryManager manager = server.getRepositoryManager();

    // create a (non-inferencing) memory store
    MemoryStoreConfig memStoreConfig = new MemoryStoreConfig();
    SailRepositoryConfig sailRepConfig = new SailRepositoryConfig(memStoreConfig);
    RepositoryConfig repConfig = new RepositoryConfig(TEST_REPO_ID, sailRepConfig);

    manager.addRepositoryConfig(TEST_REPO_ID, repConfig.export());

    // create an inferencing memory store
    ForwardChainingRDFSInferencerConfig inferMemStoreConfig = new ForwardChainingRDFSInferencerConfig(
        new MemoryStoreConfig());
    sailRepConfig = new SailRepositoryConfig(inferMemStoreConfig);
    repConfig = new RepositoryConfig(TEST_INFERENCE_REPO_ID, sailRepConfig);

    manager.addRepositoryConfig(TEST_INFERENCE_REPO_ID, repConfig.export());
  }
View Full Code Here

Examples of org.openrdf.repository.config.RepositoryConfig

    throws StoreConfigException, StoreException
  {
    Model config = getRepositoryConfig(id);

    if (config != null) {
      RepositoryConfig repConfig = parse(config);

      Repository repository = createRepositoryStack(repConfig.getRepositoryImplConfig());
      try {
        repository.setDataDir(getRepositoryDir(id));
        repository.initialize();
        return repository;
      }
View Full Code Here

Examples of org.openrdf.repository.config.RepositoryConfig

  }

  private RepositoryConfig parse(Model config)
    throws StoreConfigException
  {
    RepositoryConfig repConfig = RepositoryConfig.create(config);
    repConfig.validate();
    return repConfig;
  }
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.