Package tech.harmonysoft.oss.common.type
Class TypeManagerContext
-
- All Implemented Interfaces:
public final class TypeManagerContextNormally type managers are bound to particular type (TypeManager.targetType property). However, sometimes that is not enough. Consider, for example, LocalDateTime - when we parse it from string, we need to use particular format. Different use-cases might require different formats.
Another example is String - normally we use it as-is but for SQL context we want to parse values like
'value'asvalue(strip single quotes).So, normally al TypeManager implementations should have unique combination of TypeManager.targetType and TypeManager.targetContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTypeManagerContext.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringidpublic final static TypeManagerContext.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description TypeManagerContext(String id)
-