@Documented @Target(value={}) @Retention(value=RUNTIME) public @interface PropertyBridgeRef
TypeBridgeMapping.
Either a bridge or an annotation bridge builder can be provided, but never both. Reference can be obtained using either a name or a type.
If a direct bridge is provided, using the methods name() or type(),
each time the mapped annotation is encountered, an instance of the property bridge will be created.
Property bridges mapped this way cannot be parameterized: any attribute of the mapped annotation will be ignored.
If an annotation bridge builder is provided, using the methods builderName() or builderType(),
each time the mapped annotation is encountered, an instance of the property bridge builder will be created.
The builder will be passed the annotation through its AnnotationBridgeBuilder.initialize(Annotation) method,
and then the bridge will be retrieved by calling BridgeBuilder.build(BridgeBuildContext).
Property bridges mapped this way can be parameterized:
the bridge will be able to take any attribute of the mapped annotation into account
in its AnnotationBridgeBuilder.initialize(Annotation) method.
| Modifier and Type | Optional Element and Description |
|---|---|
String |
builderName
Reference a property bridge by the bean name of its builder.
|
Class<? extends AnnotationBridgeBuilder<? extends PropertyBridge,?>> |
builderType
Reference a property bridge by the type of its builder.
|
String |
name
Reference a property bridge by its bean name.
|
Class<? extends PropertyBridge> |
type
Reference a property bridge by its type.
|
public abstract String name
public abstract Class<? extends PropertyBridge> type
public abstract String builderName
public abstract Class<? extends AnnotationBridgeBuilder<? extends PropertyBridge,?>> builderType
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.