Registry / build-tool / classindex

classindex

JSON →
library3.13javamavenunverified

ClassIndex is an annotation processor that generates an index of classes implementing interfaces, annotated with annotations, or in common packages at compile time.

build-tool
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.

org.atteo.classindex.ClassIndex

Retrieves all classes annotated with a custom annotation using ClassIndex.

import org.atteo.classindex.ClassIndex; import java.util.List; public class ClassIndexExample { public static void main(String[] args) { List<Class<?>> classes = ClassIndex.getAnnotated(MyAnnotation.class); System.out.println("Found " + classes.size() + " annotated classes"); } }
Debug
Known footguns
gotchaClassIndex requires annotation processing to be enabled during compilation.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
15 hits · last 30 days
gptbot
3
amazonbot
3
claudebot
3
mj12bot
1
ahrefsbot
1
Resources