Interface MappingBuildContext
public interface MappingBuildContext
A build context for mappings.
-
Method Summary
Modifier and TypeMethodDescriptionA 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.
-
Method Details
-
classResolver
ClassResolver classResolver() -
resourceResolver
ResourceResolver resourceResolver() -
beanResolver
BeanResolver beanResolver() -
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.- Returns:
- A failure collector.
-
failureHandler
FailureHandler failureHandler() -
threadPoolProvider
ThreadPoolProvider threadPoolProvider() -
configurationPropertySource
ConfigurationPropertySource configurationPropertySource()
-