Package com.atlassian.crowd.mapper
Class SimpleObjectMapper<T>
java.lang.Object
com.atlassian.crowd.mapper.SimpleObjectMapper<T>
Simplified version of
ObjectMapper
that has following advantages over ObjectMapper
:
- It's fully thread-safe, as it uses
ObjectReader
andObjectWriter
which are immutable - Is not prone to performance problems under heavy load
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper mapper, Class<T> clz) SimpleObjectMapper
(Class<T> clz) -
Method Summary
-
Constructor Details
-
SimpleObjectMapper
-
SimpleObjectMapper
-
-
Method Details
-
serialize
- Throws:
IOException
-
deserialize
- Throws:
IOException
-