Package org.hibernate.search.impl

Examples of org.hibernate.search.impl.SearchFactoryImpl


      this.classes = classes;

      // Set up the search factory for hibernate search first.

      SearchConfiguration cfg = new SearchableCacheConfiguration(classes, properties);
      searchFactory = new SearchFactoryImpl(cfg);

      applyProperties(cache.getConfiguration());
   }
View Full Code Here


    WeakHashMap<Configuration, SearchFactoryImpl> contextMap = contexts.get();
    if ( contextMap == null ) {
      contextMap = new WeakHashMap<Configuration, SearchFactoryImpl>( 2 );
      contexts.set( contextMap );
    }
    SearchFactoryImpl searchFactory = contextMap.get( cfg );
    if ( searchFactory == null ) {
      searchFactory = new SearchFactoryImpl( new SearchConfigurationFromHibernateCore( cfg ) );
      contextMap.put( cfg, searchFactory );
    }
    return searchFactory;
  }
View Full Code Here

    WeakHashMap<Configuration, SearchFactoryImpl> contextMap = contexts.get();
    if ( contextMap == null ) {
      contextMap = new WeakHashMap<Configuration, SearchFactoryImpl>( 2 );
      contexts.set( contextMap );
    }
    SearchFactoryImpl searchFactory = contextMap.get( cfg );
    if ( searchFactory == null ) {
      searchFactory = new SearchFactoryImpl( new SearchConfigurationFromHibernateCore( cfg ) );
      contextMap.put( cfg, searchFactory );
    }
    return searchFactory;
  }
View Full Code Here

    WeakHashMap<Configuration, SearchFactoryImpl> contextMap = contexts.get();
    if ( contextMap == null ) {
      contextMap = new WeakHashMap<Configuration, SearchFactoryImpl>( 2 );
      contexts.set( contextMap );
    }
    SearchFactoryImpl searchFactory = contextMap.get( cfg );
    if ( searchFactory == null ) {
      searchFactory = new SearchFactoryImpl( new SearchConfigurationFromHibernateCore( cfg ) );
      contextMap.put( cfg, searchFactory );
    }
    return searchFactory;
  }
View Full Code Here

      // step 1: create hibernate search searchFactory
      SearchConfiguration cfg = new SearchableCacheConfiguration(classes, properties);
      // set classes in the cfg

      SearchFactoryImplementor searchFactory = new SearchFactoryImpl(cfg);


      // Okay, create the core listener
      SearchableCoreListener coreListener = new SearchableCoreListener(searchFactory);
      c.addCacheListener(coreListener);
View Full Code Here

TOP

Related Classes of org.hibernate.search.impl.SearchFactoryImpl

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.