Package org.jobrunr.utils.mapper
Interface JsonMapper
- All Known Implementing Classes:
GsonJsonMapper
,JacksonJsonMapper
,JsonbJsonMapper
public interface JsonMapper
JsonMapper that will transform Jobs (and their JobParameters) to Json and back for both storage in the database and
for use in the dashboard.
If you need to create your own JsonMapper, it must pass the JsonMapperValidator.validateJsonMapper(JsonMapper)
method.
-
Method Summary
Modifier and TypeMethodDescription<T> T
deserialize
(String serializedObjectAsString, Class<T> clazz) void
serialize
(OutputStream outputStream, Object object)
-
Method Details
-
serialize
-
serialize
-
deserialize
-