Class JacksonSerializationService
- java.lang.Object
-
- ru.easydonate.easydonate4j.json.serialization.AbstractJsonSerializationService
-
- ru.easydonate.easydonate4j.json.serialization.JacksonSerializationService
-
- All Implemented Interfaces:
ru.easydonate.easydonate4j.json.serialization.JsonSerializationService
public final class JacksonSerializationService extends ru.easydonate.easydonate4j.json.serialization.AbstractJsonSerializationService
-
-
Constructor Summary
Constructors Constructor Description JacksonSerializationService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
deserialize(@NotNull Class<T> type, @Nullable String rawJson)
@NotNull ru.easydonate.easydonate4j.json.serialization.JsonSerializationServiceType
getType()
static boolean
isRegistered()
static void
register()
static void
registerIfNotRegisteredYet()
<T> void
registerImplementationAliasesGroup(@NotNull ru.easydonate.easydonate4j.json.serialization.implementation.registry.JsonModelsGroup jsonModelsGroup)
@Nullable String
serialize(@Nullable Object object)
@NotNull String
toPrettyString(@NotNull Object object)
-
-
-
Method Detail
-
register
public static void register() throws ru.easydonate.easydonate4j.module.ModuleAlreadyRegisteredException
- Throws:
ru.easydonate.easydonate4j.module.ModuleAlreadyRegisteredException
-
registerIfNotRegisteredYet
public static void registerIfNotRegisteredYet()
-
isRegistered
public static boolean isRegistered()
-
getType
@NotNull public @NotNull ru.easydonate.easydonate4j.json.serialization.JsonSerializationServiceType getType()
-
registerImplementationAliasesGroup
public <T> void registerImplementationAliasesGroup(@NotNull @NotNull ru.easydonate.easydonate4j.json.serialization.implementation.registry.JsonModelsGroup jsonModelsGroup)
-
serialize
@Nullable public @Nullable String serialize(@Nullable @Nullable Object object) throws ru.easydonate.easydonate4j.exception.JsonSerializationException
- Throws:
ru.easydonate.easydonate4j.exception.JsonSerializationException
-
deserialize
@Nullable public <T> T deserialize(@NotNull @NotNull Class<T> type, @Nullable @Nullable String rawJson) throws ru.easydonate.easydonate4j.exception.JsonSerializationException
- Throws:
ru.easydonate.easydonate4j.exception.JsonSerializationException
-
-