Package org.hibernate.search.indexes.impl

Examples of org.hibernate.search.indexes.impl.IndexManagerHolder


      }
      bindFilterDefs( mappedXClass );
      //TODO should analyzer def for classes at their same level???
    }
   
    IndexManagerHolder indexesFactory = factoryState.getAllIndexesManager();
   
    // Create all IndexManagers, configure and start them:
    for ( XClass mappedXClass : rootIndexedEntities ) {
     
      Class mappedClass = classMappings.get( mappedXClass );
      MutableEntityIndexBinding mappedEntity = indexesFactory.buildEntityIndexBinding( mappedXClass, mappedClass, cfg, buildContext );
      //interceptor might use non indexed state
        if ( mappedEntity.getEntityIndexingInterceptor() != null ) {
        optimizationBlackListedTypes.add( mappedXClass );
      }
      // Create all DocumentBuilderIndexedEntity
View Full Code Here


      factoryState.setDocumentBuildersContainedEntities( new ConcurrentHashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setFilterDefinitions( new ConcurrentHashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
      factoryState.setConfigurationProperties( cfg.getProperties() );
      factoryState.setServiceManager( new StandardServiceManager( cfg, buildContext ) );
      factoryState.setAllIndexesManager( new IndexManagerHolder() );
      factoryState.setErrorHandler( createErrorHandler( cfg ) );
      factoryState.setInstanceInitializer( cfg.getInstanceInitializer() );
      factoryState.setTimingSource( new DefaultTimingSource() );
      factoryState.setIndexMetadataComplete( cfg.isIndexMetadataComplete() );
      factoryState.setTransactionManagerExpected( cfg.isTransactionManagerExpected() );
View Full Code Here

      }
      bindFilterDefs( mappedXClass );
      //TODO should analyzer def for classes at their same level???
    }

    IndexManagerHolder indexesFactory = factoryState.getAllIndexesManager();

    // Create all IndexManagers, configure and start them:
    for ( XClass mappedXClass : rootIndexedEntities ) {
      Class mappedClass = classMappings.get( mappedXClass );
      MutableEntityIndexBinding entityIndexBinding = indexesFactory.buildEntityIndexBinding( mappedXClass, mappedClass, cfg, buildContext );

      // interceptor might use non indexed state
      if ( entityIndexBinding.getEntityIndexingInterceptor() != null ) {
        optimizationBlackListedTypes.add( mappedXClass );
      }
View Full Code Here

              cfg,
              buildContext,
              Environment.DEFAULT_SERVICES_MAP
          )
      );
      factoryState.setAllIndexesManager( new IndexManagerHolder() );
      factoryState.setErrorHandler( createErrorHandler( cfg ) );
      factoryState.setInstanceInitializer( cfg.getInstanceInitializer() );
      factoryState.setTimingSource( new DefaultTimingSource() );
      factoryState.setIndexMetadataComplete( cfg.isIndexMetadataComplete() );
      factoryState.setTransactionManagerExpected( cfg.isTransactionManagerExpected() );
View Full Code Here

      }
      bindFilterDefs( mappedXClass );
      //TODO should analyzer def for classes at their same level???
    }

    IndexManagerHolder indexesFactory = factoryState.getAllIndexesManager();

    // Create all IndexManagers, configure and start them:
    for ( XClass mappedXClass : rootIndexedEntities ) {
      Class mappedClass = classMappings.get( mappedXClass );
      MutableEntityIndexBinding entityIndexBinding = indexesFactory.buildEntityIndexBinding(
          mappedXClass,
          mappedClass,
          searchConfiguration,
          buildContext
      );
View Full Code Here

      factoryState.setDocumentBuildersContainedEntities( new ConcurrentHashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setFilterDefinitions( new ConcurrentHashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
      factoryState.setConfigurationProperties( cfg.getProperties() );
      factoryState.setServiceManager( new StandardServiceManager( cfg ) );
      factoryState.setAllIndexesManager( new IndexManagerHolder() );
      factoryState.setErrorHandler( createErrorHandler( cfg ) );
      factoryState.setInstanceInitializer( cfg.getInstanceInitializer() );
      factoryState.setTimingSource( new DefaultTimingSource() );
      factoryState.setIndexMetadataComplete( cfg.isIndexMetadataComplete() );
      factoryState.setTransactionManagerExpected( cfg.isTransactionManagerExpected() );
View Full Code Here

      }
      bindFilterDefs( mappedXClass );
      //TODO should analyzer def for classes at their same level???
    }

    IndexManagerHolder indexesFactory = factoryState.getAllIndexesManager();

    // Create all IndexManagers, configure and start them:
    for ( XClass mappedXClass : rootIndexedEntities ) {

      Class mappedClass = classMappings.get( mappedXClass );
      MutableEntityIndexBinding mappedEntity = indexesFactory.buildEntityIndexBinding( mappedXClass, mappedClass, cfg, buildContext );
      //interceptor might use non indexed state
      if ( mappedEntity.getEntityIndexingInterceptor() != null ) {
        optimizationBlackListedTypes.add( mappedXClass );
      }
      // Create all DocumentBuilderIndexedEntity
View Full Code Here

      factoryState.setDocumentBuildersContainedEntities( new ConcurrentHashMap<Class<?>, DocumentBuilderContainedEntity<?>>() );
      factoryState.setFilterDefinitions( new ConcurrentHashMap<String, FilterDef>() );
      factoryState.setIndexHierarchy( new PolymorphicIndexHierarchy() );
      factoryState.setConfigurationProperties( cfg.getProperties() );
      factoryState.setServiceManager( new ServiceManager( cfg ) );
      factoryState.setAllIndexesManager( new IndexManagerHolder() );
      factoryState.setErrorHandler( createErrorHandler( cfg ) );
      factoryState.setInstanceInitializer( cfg.getInstanceInitializer() );
      factoryState.setTimingSource( new DefaultTimingSource() );
    }
  }
View Full Code Here

      }
      bindFilterDefs( mappedXClass );
      //TODO should analyzer def for classes at their same level???
    }
   
    IndexManagerHolder indexesFactory = factoryState.getAllIndexesManager();
   
    // Create all IndexManagers, configure and start them:
    for ( XClass mappedXClass : rootIndexedEntities ) {
     
      Class mappedClass = classMappings.get( mappedXClass );
      MutableEntityIndexBinding mappedEntity = indexesFactory.buildEntityIndexBinding( mappedXClass, mappedClass, cfg, buildContext );
   
      // Create all DocumentBuilderIndexedEntity
      //FIXME DocumentBuilderIndexedEntity needs to be built by a helper method receiving Class<T> to infer T properly
      //XClass unfortunately is not (yet) genericized: TODO?
      final DocumentBuilderIndexedEntity<?> documentBuilder =
View Full Code Here

              cfg,
              buildContext,
              Environment.DEFAULT_SERVICES_MAP
          )
      );
      factoryState.setAllIndexesManager( new IndexManagerHolder() );
      factoryState.setErrorHandler( createErrorHandler( cfg ) );
      factoryState.setInstanceInitializer( cfg.getInstanceInitializer() );
      factoryState.setTimingSource( new DefaultTimingSource() );
      factoryState.setIndexMetadataComplete( cfg.isIndexMetadataComplete() );
      factoryState.setTransactionManagerExpected( cfg.isTransactionManagerExpected() );
View Full Code Here

TOP

Related Classes of org.hibernate.search.indexes.impl.IndexManagerHolder

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.