public final class JsonValidatorCache extends Object
This class plays a critically important role in the performance of the whole validation process, since it is the class responsible for instantiating validators and caching them for future reuse.
As it uses a LoadingCache, it is totally thread safe and also
very efficient.
SchemaNode| Constructor and Description |
|---|
JsonValidatorCache(KeywordBundle bundle,
SchemaRegistry registry)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
JsonValidator |
getValidator(SchemaNode schemaNode) |
public JsonValidatorCache(KeywordBundle bundle, SchemaRegistry registry)
Instantiate the syntax validator, the keyword factory, the JSON ref resolver and the validator cache.
bundle - the keyword bundleregistry - the schema registrypublic JsonValidator getValidator(SchemaNode schemaNode)
Copyright © 2012. All Rights Reserved.