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

org.simpleflatmapper.map.getter.ContextualGetterFactoryAdapter Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
package org.simpleflatmapper.map.getter;

import org.simpleflatmapper.map.context.MappingContextFactoryBuilder;
import org.simpleflatmapper.reflect.Getter;
import org.simpleflatmapper.reflect.getter.GetterFactory;

import java.lang.reflect.Type;

public class ContextualGetterFactoryAdapter implements ContextualGetterFactory {
    
    private final GetterFactory delegate;

    public ContextualGetterFactoryAdapter(GetterFactory delegate) {
        this.delegate = delegate;
    }

    @Override
    public 

ContextualGetter newGetter(Type target, K key, MappingContextFactoryBuilder mappingContextFactoryBuilder, Object... properties) { Getter getter = delegate.newGetter(target, key, properties); if (getter == null) return null; return ContextualGetterAdapter.of(getter); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy