@Documented @Target(value={}) @Retention(value=RUNTIME) public @interface MarkerBinderRef
MarkerBinding.
References can use either a name, a type, or both.
Each time the mapped annotation is encountered, an instance of the marker binder will be created.
The binder will be passed the annotation through its MarkerBinder.initialize(Annotation) method,
and then the bridge will be created and bound by MarkerBinder.bind(MarkerBindingContext).
Markers mapped this way can be parameterized:
the marker mapping will be able to take any attribute of the mapped annotation into account
in its MarkerBinder.initialize(Annotation) method.
| Modifier and Type | Optional Element and Description |
|---|---|
String |
name
Reference a marker binder by its bean name.
|
Class<? extends MarkerBinder<?>> |
type
Reference a marker binder by its bean type.
|
public abstract String name
public abstract Class<? extends MarkerBinder<?>> type
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.