Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

wanghongfei/pkg-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Package Scanner - The missing scanner in Java world

扫描出指定包下所有的类名。

Quick Start

指定包名:

	PkgScanner scanner = new PkgScanner("cn.fh.pkgscanner");
	List<String> list = scanner.scan();

	list.forEach( f -> System.out.println(f));

输出结果:

cn.fh.pkgscanner.PathUtils
cn.fh.pkgscanner.PkgScanner
cn.fh.pkgscanner.ResourceType

指定包名和注解名:

	PkgScanner scanner = new PkgScanner("cn.fh.pkgscanner", Component.class);
	List<String> list = scanner.scan();

	list.forEach( f -> System.out.println(f));

About

Java包扫描器, 扫描出指定包下所有的类名

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages