public interface IJsonFormatTypeCoercer extends ICoercionProvider
"format"
to a Java type. For instance,
the "date-time"
format maps to LocalDateTime
See DefaultCoercer
to see how "date-time"
and other formats are mapped to a set of Java types.
Register one or more of your IJsonFormatTypeCoercer
implementations in a file named:
META-INF/services/manifold.ext.rt.api.ICoercionProvider
This file contains the fully qualified names of your implementations, one per line e.g.,
com.example.FooFormatTypeCoercer
com.example.BarFormatTypeCoercer
Modifier and Type | Field and Description |
---|---|
static manifold.util.concurrent.LocklessLazyVar<Set<ICoercionProvider>> |
_coercionProviders |
static manifold.util.concurrent.LocklessLazyVar<List<IJsonFormatTypeCoercer>> |
_instances |
Modifier and Type | Method and Description |
---|---|
static List<IJsonFormatTypeCoercer> |
get() |
Map<String,Class<?>> |
getFormats() |
coerce, toBindingValue
static final manifold.util.concurrent.LocklessLazyVar<Set<ICoercionProvider>> _coercionProviders
static final manifold.util.concurrent.LocklessLazyVar<List<IJsonFormatTypeCoercer>> _instances
static List<IJsonFormatTypeCoercer> get()
Copyright © 2024. All rights reserved.