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.

<dependency> <groupId>org.atteo.classindex</groupId> <artifactId>classindex</artifactId> <version>3.13</version> </dependency>
INSTALL
IMPORT
SIG · CLASSINDEX
C
classindex
build-tooljavav3.13
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.

ClassIndex
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 issues
gotchaClassIndex requires annotation processing to be enabled during compilation.
fix
Ensure your build tool (Maven/Gradle) is configured to run annotation processors.
affects: all
Upgrade
Version history
3.13latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
classindex — mvn dependency:get classindex · libregistry