Hi, Is it possible to enumerate all classes which ...
# serialization
a
Hi, Is it possible to enumerate all classes which contain
Serializable
annotation at runtime? Maybe kotlin serializer stores this information in some hash map which can be accessed? I want find an appropriate serializer by knowing only full class name, or this can be done using reflection only?
c
If you’re using JVM, you could use Classgraph to scan the classpath for those classes https://github.com/classgraph/classgraph
a
thanks!