org.simpleflatmapper.map.annotation.impl.MappingAnnotationToPropertyServiceProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-map Show documentation
Show all versions of sfm-map Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.simpleflatmapper.map.annotation.impl;
import org.simpleflatmapper.map.annotation.Key;
import org.simpleflatmapper.map.property.KeyProperty;
import org.simpleflatmapper.reflect.meta.AnnotationToPropertyService;
import org.simpleflatmapper.reflect.meta.AnnotationToPropertyServiceProducer;
import org.simpleflatmapper.util.Consumer;
import java.lang.annotation.Annotation;
public class MappingAnnotationToPropertyServiceProducer implements AnnotationToPropertyServiceProducer {
@Override
public void produce(Consumer super AnnotationToPropertyService> consumer) {
consumer.accept(new MappingAnnotationToPropertyService());
}
private class MappingAnnotationToPropertyService implements AnnotationToPropertyService {
@Override
public void generateProperty(Annotation annotation, Consumer