Class HibernateSearchStandalonePreBootState

java.lang.Object
io.quarkus.hibernate.search.standalone.elasticsearch.runtime.HibernateSearchStandalonePreBootState

public final class HibernateSearchStandalonePreBootState extends Object
A class responsible for holding pre-boot state.

This is just a way to circumvent a mismatch between build-time order and static-init order:

  1. At build time, the build step that records the static-init Hibernate Search pre-boot must execute before build step that defines CDI beans, which itself must execute before the Arc build step that records the CDI container initialization.
  2. During static init, the CDI container initialization must happen before the Hibernate Search pre-boot. invalid input: '<'/ol Because of this mismatch, we can't rely on passing around the values returned by bytecode recorder between build steps.
  • Constructor Details

    • HibernateSearchStandalonePreBootState

      public HibernateSearchStandalonePreBootState()
  • Method Details

    • set

      public static void set(Map<String,Object> aState)
      Sets the pre-boot state during static init.
      Parameters:
      aState - The pre-boot state as generated during static init.
    • pop

      public static Map<String,Object> pop()
      Returns and clears the pre-boot state.
      Returns:
      The pre-boot state as generated during static init.