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

cn.featherfly.hammer.tpl.mapper.BasedGenericMapper Maven / Gradle / Ivy

There is a newer version: 0.7.2
Show newest version

package cn.featherfly.hammer.tpl.mapper;

import java.io.Serializable;

import cn.featherfly.hammer.GenericHammer;
import cn.featherfly.hammer.GenericHammerSupport;
import cn.featherfly.hammer.Hammer;

/**
 * The Class BasedGenericMapper.
 *
 * @author zhongj
 * @param   the element type
 * @param  the generic type
 */
public class BasedGenericMapper implements GenericHammerSupport {

    /** The hammer. */
    protected GenericHammer hammer;

    /**
     * Instantiates a new based generic mapper.
     *
     * @param hammer the hammer
     * @param type   the type
     */
    public BasedGenericMapper(Hammer hammer, Class type) {
        this.hammer = new BasedTplGenericHammer<>(hammer, type);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public GenericHammer getHammer() {
        return hammer;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy