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

com.doyospy.core.lang.ClassScanner Maven / Gradle / Ivy

Go to download

Doyospy是一个小而全的基于SpringBoot的java工具类库,通过静态方法封装,方便开发者使用,降低学习成本并提升工作效率。

The newest version!
package com.doyospy.core.lang;

import java.io.Serializable;

/**
 * 类扫描器
 */
public class ClassScanner implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 包名
     */
    private final String packageName;

    /**
     * 构造函数,默认UTF-8编码
     */
    public ClassScanner() {
        this(null);
    }

    /**
     * 构造函数,默认UTF-8编码
     * @param packageName 包名,所有包传入“”或者null
     */
    public ClassScanner(String packageName) {
        this.packageName = packageName;
    }

//    /**
//     * 构造函数,默认UTF-8编码
//     * @param packageName
//     * @param classFilter
//     */
//    public ClassScanner(String packageName, Filter> classFilter) {
//        this(packageName, classFilter, null);
//    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy