org.hibernate.search.hcore.util.impl

## Class ContextHelper

- java.lang.Object
- - org.hibernate.search.hcore.util.impl.ContextHelper

-     public class ContextHelper
      extends Object

  Static helper class to retrieve the instance of the current `SearchIntegrator` / `ExtendedSearchIntegrator`.

  Note:
  The use of this class is discouraged. If possible should `FullTextEntityManager.getSearchFactory()` be used. However, this is not always possible, for example in FullTextSessionImpl itself.

  Author:
    Emmanuel Bernard

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ExtendedSearchIntegrator` | `getSearchIntegrator(Session session)`
    `static ExtendedSearchIntegrator` | `getSearchIntegratorBySessionImplementor(SessionImplementor session)`
    `static ExtendedSearchIntegrator` | `getSearchIntegratorBySF(SessionFactory factory)`
    `static ExtendedSearchIntegrator` | `getSearchIntegratorBySFI(SessionFactoryImplementor sfi)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getSearchIntegrator

          public static ExtendedSearchIntegrator getSearchIntegrator(Session session)

    - #### getSearchIntegratorBySessionImplementor

          public static ExtendedSearchIntegrator getSearchIntegratorBySessionImplementor(SessionImplementor session)

    - #### getSearchIntegratorBySF

          public static ExtendedSearchIntegrator getSearchIntegratorBySF(SessionFactory factory)

    - #### getSearchIntegratorBySFI

          public static ExtendedSearchIntegrator getSearchIntegratorBySFI(SessionFactoryImplementor sfi)

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved