Interface MappingBuildContext

  • public interface MappingBuildContext
    A build context for mappings.
    • Method Detail

      • failureCollector

        ContextualFailureCollector failureCollector()
        A collector of (non-fatal) failures, allowing to notify Hibernate Search that something went wrong and bootstrap should be aborted at some point, while still continuing the bootstrap process for some time to collect other errors that could be relevant to users.

        Note that this is primarily intended for mapper implementations. Backend implementations should use the collector with caution: in many cases it's a better idea to throw a SearchException so that the mapper can catch it and add it to the failure collector, optionally prepending some context of its own.

        A failure collector.