Package com.babelqueue.schema
Class MapProvider
java.lang.Object
com.babelqueue.schema.MapProvider
- All Implemented Interfaces:
SchemaProvider
In-memory
SchemaProvider, for tests and for embedding schemas in code. Construct it
with each URN's already-decoded JSON Schema (a Map).-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MapProvider
- Parameters:
schemas- urn -> decoded JSON Schema
-
-
Method Details
-
schemaFor
Description copied from interface:SchemaProviderThe decoded JSON Schema registered forurn, ornullwhen none is.- Specified by:
schemaForin interfaceSchemaProvider- Parameters:
urn- the message URN- Returns:
- the schema map, or null
-