A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/classgraph/classgraph/wiki/ClassGraph-API below:

ClassGraph API · classgraph/classgraph Wiki · GitHub

See also the code examples page.

  1. Create a new ClassGraph() instance, and configure it for scanning:
  2. Start the scan, by calling .scan(), to produce a ScanResult object.

    💡 The ScanResult should be assigned in a try-with-resources block or equivalent. See ScanResult lifecycle.

  3. Query the ScanResult object: (the ScanResult object can be queried repeatedly without re-running the scan)

You can scan either at runtime (the normal usecase), or at build time (for faster startup speed, or to support Android, since it does not use the standard Java bytecode format).

See the code examples page for specific examples of how to use the ClassGraph API.

Documentation for legacy API (FastClasspathScanner)

ClassGraph version 4 is a major upgrade over the previous version, FastClasspathScanner version 3, and there were a number of major API changes between FastClasspathScanner and ClassGraph. See here for information on porting FastClasspathScanner v3 code to the ClassGraph v4 API, and for info on how to obtain the older FastClasspathScanner version 3 documentation.


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