public interface MappingAnnotationProcessorContext
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<BeanReference<? extends T>> |
toBeanReference(Class<T> expectedType,
Class<?> undefinedTypeMarker,
Class<? extends T> type,
String name)
Convert attributes of a bean-reference annotation,
such as
ValueBridgeRef,
to an actual BeanReference. |
ContainerExtractorPath |
toContainerExtractorPath(ContainerExtraction extraction)
Convert a
ContainerExtraction annotation to a ContainerExtractorPath. |
Optional<PojoModelPathValueNode> |
toPojoModelPathValueNode(ObjectPath objectPath)
Convert an
ObjectPath annotation to a PojoModelPathValueNode. |
Optional<PojoModelPathValueNode> toPojoModelPathValueNode(ObjectPath objectPath)
ObjectPath annotation to a PojoModelPathValueNode.objectPath - The annotation to convert.ContainerExtractorPath toContainerExtractorPath(ContainerExtraction extraction)
ContainerExtraction annotation to a ContainerExtractorPath.extraction - The annotation to convert.<T> Optional<BeanReference<? extends T>> toBeanReference(Class<T> expectedType, Class<?> undefinedTypeMarker, Class<? extends T> type, String name)
ValueBridgeRef,
to an actual BeanReference.
Example of use:
Optional<BeanReference<? extends ValueBridge>> valueBridgeRef = toBeanReference(
ValueBridge.class,
ValueBridgeRef.UndefinedBridgeImplementationType.class,
myValueBridgeRefInstance.type(),
myValueBridgeRefInstance.name()
);
T - The bean type.expectedType - The supertype of all types that can be referenced.undefinedTypeMarker - A marker type to detect that the type parameter has its default value (undefined).type - The bean type.name - The bean name.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.