Klasse TeamAppsJacksonTypeIdResolver
- Alle implementierten Schnittstellen:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
Ratio: Components are allowed to send and receive.
On the sending side, this enables app developers to send arbitrary data for templates. E.g., a MustacheTemplate might be filled using a list of deep json structures.
On the receiving side, this is technically not necessary, since all data that comes from UiComponents might be defined as UiObjects.
However, component developers might decide to send back arbitrary object (in original or changed state) that were previously sent to the
client. This approach is not recommended but possible. Since only classes that have ever been serialized can be deserialized, there is
no security risk in technically allowing Object values (unless developers send security critical classes, which we regard as
very unlikely).
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcom.fasterxml.jackson.annotation.JsonTypeInfo.IdidFromClass(Class clazz) idFromValue(Object obj) idFromValueAndType(Object obj, Class<?> clazz) voidinit(com.fasterxml.jackson.databind.JavaType baseType) static StringregisterPojoClass(Class clazz) com.fasterxml.jackson.databind.JavaTypetypeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id)
-
Konstruktordetails
-
TeamAppsJacksonTypeIdResolver
public TeamAppsJacksonTypeIdResolver()
-
-
Methodendetails
-
registerPojoClass
-
init
public void init(com.fasterxml.jackson.databind.JavaType baseType) - Angegeben von:
initin Schnittstellecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()- Angegeben von:
getMechanismin Schnittstellecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromClass
-
idFromValue
- Angegeben von:
idFromValuein Schnittstellecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromValueAndType
- Angegeben von:
idFromValueAndTypein Schnittstellecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromBaseType
- Angegeben von:
idFromBaseTypein Schnittstellecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
typeFromId
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id) - Angegeben von:
typeFromIdin Schnittstellecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
getDescForKnownTypeIds
- Angegeben von:
getDescForKnownTypeIdsin Schnittstellecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-