A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/classgraph/classgraph/wiki/Porting-FastClasspathScanner-code-to-ClassGraph below:

Porting FastClasspathScanner code to ClassGraph · classgraph/classgraph Wiki · GitHub

FastClasspathScanner was renamed to ClassGraph for the version 4 release. There are several reasons behind the name change:

  1. Most importantly, the Java runtime environment is more or less deprecating the legacy classpath in favor of a fully modular future. FastClasspathScanner already has complete support for module scanning -- but "FastClasspathAndModulePathScanner" would not have been a good name.
  2. FastClasspathScanner has outgrown what it was created to do, which was to scan the classpath for annotations. It is now able to reconstruct the entire class graph, along with information about methods and fields, and complex type signature information. The name "ClassGraph" better reflects this. The new v4 API is pretty uniform and complete at this stage: https://github.com/classgraph/classgraph/wiki/ClassGraph-API
  3. "FastClasspathScanner" was never a good name to begin with :-) It was too long to comfortably type or say.

The version 4 release is the result of a huge amount of refactoring, code cleanup and API simplification. The resulting API is now much more flexible, powerful and uniform than the Version 3 API. See the docs for the Version 4 API for an overview. Scanning speed has improved through the use of memory-mapped file buffers where possible, and through some optimization work.

If you want to stay on the old FastClasspathScanner v3 API, you should depend specifically on fast-classpath-scanner version 3.1.13.

Important: All significant development will be continuing in ClassGraph moving forward, and numerous bugs have been fixed between FastClasspathScanner version 3.1.13 and ClassGraph version 4. Therefore, it is highly recommended that you port your code from the FastClasspathScanner version 3 API to the ClassGraph version 4 API.

Porting from the version 3 to the version 4 API:

To view the documentation for the older Version 3 API:

git clone https://github.com/classgraph/classgraph.wiki.git
cd classgraph.wiki
git checkout v3

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4