Package org.hibernate.search.hcore.impl

Examples of org.hibernate.search.hcore.impl.SearchFactoryReference


    expect( mockSessionFactoryServiceRegistry.getService( EventListenerRegistry.class ) ).andReturn(
        mockEventListenerRegistry
    );
    expect( mockSessionFactoryServiceRegistry.getService( SearchFactoryReference.class ) ).andReturn(
        new SearchFactoryReference()
    );

    mockEventListenerRegistry.addDuplicationStrategy( isA( HibernateSearchIntegrator.DuplicationStrategyImpl.class ) );

    mockEventListenerRegistry.appendListeners(
View Full Code Here


  public static SearchFactoryImplementor getSearchFactoryBySessionImplementor(SessionImplementor session) {
    return getSearchFactoryBySFI( session.getFactory() );
  }

  public static SearchFactoryImplementor getSearchFactoryBySFI(SessionFactoryImplementor sfi) {
    final SearchFactoryReference factoryReference = sfi.getServiceRegistry()
      .getService( SearchFactoryReference.class );
    if ( factoryReference != null ) {
      return factoryReference.getSearchFactory();
    }
    else {
      throw LoggerFactory.make().searchFactoryReferenceServiceNotFound();
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.hcore.impl.SearchFactoryReference

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.