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

com.cvent.dropwizard.mybatis.dataaccess.WrappedInvoker Maven / Gradle / Ivy

Go to download

An open source bridge layer so that you can use mybatis with dropwizard + other useful utility methods often used within an enterprise.

There is a newer version: 4.0.4
Show newest version
package com.cvent.dropwizard.mybatis.dataaccess;

import java.util.function.Function;

/**
 * This is a higher order function that allows implementations to manufacture instances of T and execute Functions
 * using them. See the MybatisMapperInvoker for an example.
 * @param 
 */
public interface WrappedInvoker {
    /**
     * Your implementation of this method should manufacture or reuse an instance of T, then apply function to it
     * @param function Your function that will execute given an instance of T
     * @param  The return type of your function
     * @return Usually this this just the value of function.apply(yourInstanceHere)
     */
     TResult invoke(Function function);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy