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

io.katharsis.repository.RepositoryMethodParameterProvider Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.katharsis.repository;

import java.lang.reflect.Method;
import java.lang.reflect.Parameter;

/**
 * Provides additional parameters for a repository method.
 */
public interface RepositoryMethodParameterProvider {

     T provide(Method method, int parameterIndex);

    default Parameter getParameter(Method method, int parameterIndex) {
        return method.getParameters()[parameterIndex];
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy