@Documented @Target(value={}) @Retention(value=RUNTIME) public @interface MarkerRef
MarkerMapping
.
Reference can be obtained using either a name or a type.
Each time the mapped annotation is encountered, an instance of the marker mapping builder will be created.
The builder will be passed the annotation through its AnnotationMarkerBuilder.initialize(Annotation)
method,
and then the marker will be retrieved by calling MarkerBuilder.build(org.hibernate.search.mapper.pojo.bridge.mapping.MarkerBuildContext)
.
Marker mapped this way can be parameterized:
the marker mapping will be able to take any attribute of the mapped annotation into account
in its AnnotationMarkerBuilder.initialize(Annotation)
method.
Modifier and Type | Optional Element and Description |
---|---|
String |
builderName |
Class<? extends AnnotationMarkerBuilder<?>> |
builderType |
public abstract String builderName
public abstract Class<? extends AnnotationMarkerBuilder<?>> builderType
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.