Package io.micronaut.context.annotation
Annotation Interface Mapper
@Retention(RUNTIME)
@Target({METHOD,TYPE})
@Executable(processOnStartup=true)
public @interface Mapper
An annotation that can be used on abstract methods that define a return type and exactly a single argument.
Inspired by similar frameworks like MapStruct but internally uses the BeanIntrospection
model.
- Since:
- 4.1.0
- Author:
- Graeme Rocher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The conflict strategy specifies the behaviour if a conflict is found.static @interface
The mappings. -
Optional Element Summary
Modifier and TypeOptional ElementDescription
-
Element Details
-
value
Mapper.Mapping[] value- Returns:
- Defined mappings.
- Default:
- {}
-
conflictStrategy
Mapper.ConflictStrategy conflictStrategy- Returns:
- The conflict strategy.
- Default:
- CONVERT
-