Package com.gentics.cr

Examples of com.gentics.cr.CRConfig


    GenericConfiguration sc = new GenericConfiguration();
    sc.set("indexLocations.1.path", "RAM_1");
    sc.set("indexLocationClass", "com.gentics.cr.lucene.indexer.index.LuceneSingleIndexLocation");

    CRConfig singleConfig1 = new CRConfigUtil(sc, "sc1");
    singleLoc1 = LuceneIndexLocation.getIndexLocation(singleConfig1);
   
   
    config2 = new CRConfigUtil(config.getSubConfig("index").getSubConfig("DEFAULT").getSubConfig("extensions").getSubConfig("SYN"), "SYN");
   
View Full Code Here


    GenericConfiguration sc = new GenericConfiguration();
    sc.set("indexLocations.1.path", "RAM_1");
    sc.set("indexLocationClass",
        "com.gentics.cr.lucene.indexer.index.LuceneSingleIndexLocation");

    CRConfig singleConfig1 = new CRConfigUtil(sc, "sc1");
    singleLoc1 = LuceneIndexLocation.getIndexLocation(singleConfig1);

    config2 = new CRConfigUtil(config.getSubConfig("index")
        .getSubConfig("DEFAULT").getSubConfig("extensions")
        .getSubConfig("SYN"), "SYN");
View Full Code Here

    GenericConfiguration sc = new GenericConfiguration();
    sc.set("indexLocations.1.path", "RAM_1");
    sc.set("indexLocationClass", "com.gentics.cr.lucene.indexer.index.LuceneSingleIndexLocation");

    CRConfig singleConfig1 = new CRConfigUtil(sc, "sc1");
    singleLoc1 = LuceneIndexLocation.getIndexLocation(singleConfig1);
   
   
    config2 = new CRConfigUtil(config.getSubConfig("index").getSubConfig("DEFAULT").getSubConfig("extensions").getSubConfig("SYN"), "SYN");
   
View Full Code Here

      ConcurrentHashMap<String, GenericConfiguration> configs = extensionConfiguration.getSubConfigs();

      for (Entry<String, GenericConfiguration> e : configs.entrySet()) {
        String indexExtensionName = e.getKey();
        IndexExtension instance = null;
        CRConfig extensionConfig = new CRConfigUtil(e.getValue(), INDEX_EXTENSIONS_KEY + "."
            + indexExtensionName);
        try {
          Class<?> extensionClassGeneric = Class
              .forName(extensionConfig.getString(INDEX_EXTENSION_CLASS_KEY));
          Class<? extends IndexExtension> extensionClass = extensionClassGeneric
              .asSubclass(IndexExtension.class);
          Constructor<? extends IndexExtension> extensionConstructor = extensionClass
              .getDeclaredConstructor(new Class[] { CRConfig.class, IndexLocation.class });
          instance = extensionConstructor.newInstance(new Object[] { extensionConfig, this });
View Full Code Here

    tmp.delete();
  }
 
  public void testFSDirectoryWithLockFactory() throws IOException {
   
    CRConfig config = new CRConfigUtil();
    config.set("lockFactoryClass", "org.apache.lucene.store.SimpleFSLockFactory");
   
    File tmp = CRUtil.createTempDir();

    Directory fs = LuceneDirectoryFactory.getDirectory(tmp.getAbsolutePath(), config);
View Full Code Here

TOP

Related Classes of com.gentics.cr.CRConfig

Copyright © 2018 www.massapicom. 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.