Registry / utility / scannotation

scannotation

JSON →
library1.0.3javamavenunverified

Scans class files to build an annotation database, useful for frameworks that need to discover annotated classes at runtime.

<dependency> <groupId>org.scannotation</groupId> <artifactId>scannotation</artifactId> <version>1.0.3</version> </dependency>
INSTALL
IMPORT
SIG · SCANNOTATION
S
scannotation
utilityjavav1.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AnnotationDB
org.scannotation.AnnotationDB

Scans class files and builds an annotation index.

import org.scannotation.AnnotationDB; import java.net.URL; public class Example { public static void main(String[] args) throws Exception { AnnotationDB db = new AnnotationDB(); URL[] urls = new URL[]{new URL("file:/path/to/classes")}; db.scanArchives(urls); System.out.println(db.getAnnotationIndex()); } }
Debug
Known issues
gotchaScannotation may not handle Java 9+ module system correctly; class scanning might miss annotations in modules.
fix
Consider using modern alternatives like ClassGraph for better module support.
affects: >=1.0.0
Upgrade
Version history
1.0.3latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
scannotation — mvn dependency:get scannotation · libregistry