A - The type of annotations accepted by the initialize(Annotation) method.public interface TypeBinder<A extends Annotation>
This binder takes advantage of provided metadata
to pick, configure and create a TypeBridge.
TypeBridge| Modifier and Type | Method and Description |
|---|---|
void |
bind(TypeBindingContext context)
Binds a type to index fields.
|
default void |
initialize(A annotation)
Initializes the parameters of this binder with the attributes of the given annotation.
|
default void initialize(A annotation)
annotation - An annotation to extract parameters from.void bind(TypeBindingContext context)
The context passed in parameter provides various information about the type being bound.
Implementations are expected to take advantage of that information
and to call one of the setBridge(...) methods on the context
to set the bridge.
Implementations are also expected to declare dependencies, i.e. the properties
that will later be used in the
TypeBridge.write(DocumentElement, Object, TypeBridgeWriteContext) method,
using TypeBindingContext.getDependencies().
Failing that, Hibernate Search will not reindex entities properly when an indexed property is modified.
context - A context object providing information about the type being bound,
and expecting a call to one of its setBridge(...) methods.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.