This commit is contained in:
Gunnar Morling 2014-04-06 12:03:19 +02:00
parent af9074ce13
commit da1050ab34
2 changed files with 12 additions and 7 deletions

View File

@ -69,15 +69,17 @@ public @interface Mapper {
* </ul>
* The method overrides an unmappedTargetPolicy set in a central configuration set
* by {@link #config() }
* @return The component model for the generated mapper.
*
* @return The component model for the generated mapper.
*/
String componentModel() default "default";
/**
* Central mapper configuration, carrying the {@link MapperConfig} annotation
* A class annotated with {@link MapperConfig} which should be used as configuration template. Any settings given
* via {@link Mapper} will take precedence over the settings from the referenced configuration source. The list of
* referenced mappers will contain all mappers given via {@link Mapper#uses()} and {@link MapperConfig#uses()}.
*
* @return a centralized class with {@link MapperConfig} annotation.
* @return A class which should be used as configuration template.
*/
Class<?> config() default void.class;

View File

@ -45,9 +45,12 @@ public enum ReportingPolicy {
ERROR,
/**
* A report with {@link Kind#WARNING} will be created for the given issue.
*
* This value is the default value and used to distinguish it from a user set WARNING level.
* When given as value for {@link Mapper#unmappedTargetPolicy()}, the setting from the configuration source
* referenced via {@link Mapper#config()} will be applied.
* <p>
* Otherwise (no configuration source is referenced, or this value is given via
* {@link MapperConfig#unmappedTargetPolicy()}), a report with {@link Kind#WARNING} will be created for the given
* issue.
*/
DEFAULT;
}