Package org.reflections.serializers
Class JsonSerializer
- java.lang.Object
-
- org.reflections.serializers.JsonSerializer
-
- All Implemented Interfaces:
Serializer
public class JsonSerializer extends java.lang.Object implements Serializer
json serialization forReflections
an example of produced json:reflections.save(file, new JsonSerializer()){ "store": { "SubTypes": { "org.reflections.TestModel$C1": [ "org.reflections.TestModel$C2", "org.reflections.TestModel$C3" ] }, "TypesAnnotated": { "org.reflections.TestModel$AC2": [ "org.reflections.TestModel$C2", "org.reflections.TestModel$C3" ] } } }
-
-
Constructor Summary
Constructors Constructor Description JsonSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reflectionsread(java.io.InputStream inputStream)reads the input stream into a new Reflections instance, populating it's storejava.io.Filesave(Reflections reflections, java.lang.String filename)saves a Reflections instance into the given filename
-
-
-
Method Detail
-
read
public Reflections read(java.io.InputStream inputStream)
Description copied from interface:Serializerreads the input stream into a new Reflections instance, populating it's store- Specified by:
readin interfaceSerializer
-
save
public java.io.File save(Reflections reflections, java.lang.String filename)
Description copied from interface:Serializersaves a Reflections instance into the given filename- Specified by:
savein interfaceSerializer
-
-