com.uqbar.aop.util.ReflectionLibraryUtil Maven / Gradle / Ivy
package com.uqbar.aop.util;
import java.util.Set;
import org.reflections.Reflections;
public class ReflectionLibraryUtil {
public static Set getSubTypesOf(Class> clazz){
Reflections reflections = new Reflections(clazz.getPackage().getName());
return reflections.getStore().getSubTypesOf(clazz.getName());
}
}