Class MapEntityContext.MapEntityMappingYamlContext<T>
java.lang.Object
org.keycloak.models.map.storage.file.common.BlockContext.DefaultMapContext<T>
org.keycloak.models.map.storage.file.common.MapEntityContext.MapEntityMappingYamlContext<T>
- All Implemented Interfaces:
BlockContext<Map<String,
T>>
- Enclosing class:
- MapEntityContext<T>
public static class MapEntityContext.MapEntityMappingYamlContext<T>
extends BlockContext.DefaultMapContext<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.storage.file.common.BlockContext
BlockContext.DefaultListContext<T>, BlockContext.DefaultMapContext<T>, BlockContext.DefaultObjectContext<T>
-
Field Summary
Fields inherited from class org.keycloak.models.map.storage.file.common.BlockContext.DefaultMapContext
itemClass
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetContext
(String nameOfSubcontext) Called after reading a key of map entry in YAML file and before reading its value.Methods inherited from class org.keycloak.models.map.storage.file.common.BlockContext.DefaultMapContext
add, getResult, getScalarType, newDefaultMapContext, writeValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.models.map.storage.file.common.BlockContext
add
-
Constructor Details
-
MapEntityMappingYamlContext
-
-
Method Details
-
getContext
Description copied from interface:BlockContext
Called after reading a key of map entry in YAML file and before reading its value. The key of the entry is represented asnameOfSubcontext
parameter, and provides means to specify aYamlContext
for transforming the mapping value into appropriate Java object.- Specified by:
getContext
in interfaceBlockContext<T>
- Overrides:
getContext
in classBlockContext.DefaultMapContext<T>
- Parameters:
nameOfSubcontext
- Key of the map entry- Returns:
- Context used for transforming the value,
or
null
if the default primitive / sequence / mapping context should be used instead. - See Also:
-