public interface MappingBuildContext
Modifier and Type | Method and Description |
---|---|
ContextualFailureCollector |
getFailureCollector()
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.
|
ServiceManager |
getServiceManager() |
ServiceManager getServiceManager()
ContextualFailureCollector getFailureCollector()
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.
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.