All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.beanmapper.autoconfigure.BeanMapToClass Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package io.beanmapper.autoconfigure;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Sets the annotated class up as a strict source. The target class is the recipient. Both classes are
 * registered with the BeanMapperBuilder with the source as strict. All properties in the source must
 * have matching properties in the target. If matches are missing, an exception will be thrown at startup
 * time, disrupting the boot process.
 */
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface BeanMapToClass {

    /**
     * Target class and recipient of the source, ie the annotated class
     */
    Class target();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy