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

com.qa.framework.classfinder.ClassScanner Maven / Gradle / Ivy

There is a newer version: 2.5
Show newest version
package com.qa.framework.classfinder;

import java.lang.annotation.Annotation;
import java.util.List;

/**
 * 类扫描器
 */
public interface ClassScanner {

    /**
     * 获取指定包名中的所有类
     *
     * @param packageName the package name
     * @return the class list
     */
    List> getClassList(String packageName);

    /**
     * 获取指定包名中指定注解的相关类
     *
     * @param packageName     the package name
     * @param annotationClass the annotation class
     * @return the class list by annotation
     */
    List> getClassListByAnnotation(String packageName, Class annotationClass);

    /**
     * 获取指定包名中指定父类或接口的相关类
     *
     * @param packageName the package name
     * @param superClass  the super class
     * @return the class list by super
     */
    List> getClassListBySuper(String packageName, Class superClass);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy