Class ContextVariableJacksonConverter
- java.lang.Object
-
- com.microsoft.semantickernel.contextvariables.converters.ContextVariableJacksonConverter
-
public final class ContextVariableJacksonConverter extends Object
A utility class for creatingContextVariableTypeConverterinstances that use Jackson for serialization and deserialization.
-
-
Constructor Summary
Constructors Constructor Description ContextVariableJacksonConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> ContextVariableTypeConverter.Builder<T>builder(Class<T> type)Creates a newContextVariableTypeConverter.Builderfor aContextVariableTypeConverterthat uses Jackson for serialization and deserialization.static <T> ContextVariableTypeConverter.Builder<T>builder(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper mapper)Creates a newContextVariableTypeConverter.Builderfor aContextVariableTypeConverterthat uses Jackson for serialization and deserialization.static <T> ContextVariableTypeConverter<T>create(Class<T> type)Creates a newContextVariableTypeConverterthat uses Jackson for serialization and deserialization.static <T> ContextVariableTypeConverter<T>create(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper mapper)Creates a newContextVariableTypeConverterthat uses Jackson for serialization and deserialization.
-
-
-
Method Detail
-
create
public static <T> ContextVariableTypeConverter<T> create(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a newContextVariableTypeConverterthat uses Jackson for serialization and deserialization.- Type Parameters:
T- the type of the context variable- Parameters:
type- the type of the context variablemapper- theObjectMapperto use for serialization and deserialization- Returns:
- a new
ContextVariableTypeConverter
-
create
public static <T> ContextVariableTypeConverter<T> create(Class<T> type)
Creates a newContextVariableTypeConverterthat uses Jackson for serialization and deserialization.- Type Parameters:
T- the type of the context variable- Parameters:
type- the type of the context variable- Returns:
- a new
ContextVariableTypeConverter
-
builder
public static <T> ContextVariableTypeConverter.Builder<T> builder(Class<T> type)
Creates a newContextVariableTypeConverter.Builderfor aContextVariableTypeConverterthat uses Jackson for serialization and deserialization.- Type Parameters:
T- the type of the context variable- Parameters:
type- the type of the context variable- Returns:
- a new
ContextVariableTypeConverter.Builder
-
builder
public static <T> ContextVariableTypeConverter.Builder<T> builder(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a newContextVariableTypeConverter.Builderfor aContextVariableTypeConverterthat uses Jackson for serialization and deserialization.- Type Parameters:
T- the type of the context variable- Parameters:
type- the type of the context variablemapper- theObjectMapperto use for serialization and deserialization- Returns:
- a new
ContextVariableTypeConverter.Builder
-
-