com.fasterxml.jackson.module.jsonSchema.factories.WrapperFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-module-jsonSchema Show documentation
Show all versions of jackson-module-jsonSchema Show documentation
Add-on module for Jackson (http://jackson.codehaus.org) to support
JSON Schema (http://tools.ietf.org/html/draft-zyp-json-schema-03) version 3 generation.
package com.fasterxml.jackson.module.jsonSchema.factories;
import com.fasterxml.jackson.databind.SerializerProvider;
/**
* Exists to supply {@link SchemaFactoryWrapper} or its subclasses
* to nested schema factories.
* @author jphelan
*/
public class WrapperFactory
{
public SchemaFactoryWrapper getWrapper(SerializerProvider provider) {
return new SchemaFactoryWrapper(provider);
}
public SchemaFactoryWrapper getWrapper(SerializerProvider provider, VisitorContext rvc) {
SchemaFactoryWrapper wrapper = new SchemaFactoryWrapper(provider);
wrapper.setVisitorContext(rvc);
return wrapper;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy