org.fiolino.common.reflection.AnnotationProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
General structure to easily create dynamic logic via MethodHandles and others.
package org.fiolino.common.reflection;
import java.lang.annotation.Annotation;
/**
* Created by Kuli on 6/17/2016.
*/
public interface AnnotationProvider {
/**
* Gets the annotation of a specific type.
*
* @param annotationType The type to choose
* @param The type
* @return The matching annotation, or null if it does not exist there
*/
A get(Class annotationType);
}