com.cvent.dropwizard.mybatis.dataaccess.WrappedInvoker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-mybatis Show documentation
Show all versions of dropwizard-mybatis Show documentation
An open source bridge layer so that you can use mybatis with dropwizard + other useful utility methods often used within an enterprise.
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