Registry / utility / reflections

reflections

JSON →
library0.10.2javamavenunverified

Reflections is a Java runtime metadata analysis library for scanning classpath and querying types, methods, and annotations.

<dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.10.2</version> </dependency>
INSTALL
IMPORT
SIG · REFLECTIONS
R
reflections
utilityjavav0.10.2
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.

Reflections
✓ org.reflections.Reflections

Scans a package for classes annotated with @Deprecated.

import org.reflections.Reflections; import java.util.Set; public class Quickstart { public static void main(String[] args) { Reflections reflections = new Reflections("com.example"); Set<Class<?>> annotated = reflections.getTypesAnnotatedWith(Deprecated.class); System.out.println("Deprecated classes: " + annotated.size()); } }
Debug
Known issues
gotchaReflections 0.10.x changed scanning behavior; may require explicit configuration for large classpaths.
fix
Use 'ConfigurationBuilder' to customize scanning and avoid performance issues.
affects: >=0.10.0
Upgrade
Version history
0.10.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
reflections — mvn dependency:get reflections · libregistry