Example usage for com.fasterxml.jackson.module.jsonSchema.factories VisitorContext VisitorContext

List of usage examples for com.fasterxml.jackson.module.jsonSchema.factories VisitorContext VisitorContext

Introduction

In this page you can find the example usage for com.fasterxml.jackson.module.jsonSchema.factories VisitorContext VisitorContext.

Prototype

VisitorContext

Source Link

Usage

From source file:org.brutusin.json.impl.JacksonFactoryWrapper.java

public JacksonFactoryWrapper(SerializerProvider p, Map<Class, String> formatMap) {
    this.provider = p;
    this.visitorFactory = new FormatVisitorFactory(wrapperFactory);
    this.schemaProvider = new JacksonSchemaFactory();
    this.formatMap = formatMap;
    // Disable using references:
    this.visitorContext = new VisitorContext() {
        @Override/*from  w w  w.j a  va2  s  .  c  o m*/
        public String getSeenSchemaUri(JavaType aSeenSchema) {
            return null;
        }
    };
}