Example usage for com.fasterxml.jackson.databind.type TypeFactory constructType

List of usage examples for com.fasterxml.jackson.databind.type TypeFactory constructType

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.type TypeFactory constructType.

Prototype

public JavaType constructType(Type paramType) 

Source Link

Usage

From source file:co.tuzza.swipehq.fields.CurrencyConverter.java

@Override
public JavaType getOutputType(TypeFactory typeFactory) {
    return typeFactory.constructType(Currency.class);
}

From source file:com.codepalousa.restlet.raml.DateTimeDeserializeConverter.java

@Override
public JavaType getInputType(TypeFactory typeFactory) {
    return typeFactory.constructType(String.class);
}

From source file:com.codepalousa.restlet.raml.DateTimeDeserializeConverter.java

@Override
public JavaType getOutputType(TypeFactory typeFactory) {
    return typeFactory.constructType(Date.class);
}

From source file:com.codepalousa.restlet.raml.DateTimeSerializeConverter.java

@Override
public JavaType getInputType(TypeFactory typeFactory) {
    return typeFactory.constructType(Date.class);
}

From source file:com.codepalousa.restlet.raml.DateTimeSerializeConverter.java

@Override
public JavaType getOutputType(TypeFactory typeFactory) {
    return typeFactory.constructType(String.class);
}

From source file:org.mythtv.services.api.converters.ArrayOfStringConverter.java

@Override
public JavaType getOutputType(TypeFactory typeFactory) {
    return typeFactory.constructType(ArrayOfString.class);
}

From source file:com.tikinou.schedulesdirect.core.jackson.converters.ResponseCodeConverter.java

/**
 * Method that can be used to find out actual input (source) type; this
 * usually can be determined from type parameters, but may need
 * to be implemented differently from programmatically defined
 * converters (which can not change static type parameter bindings).
 *
 * @param typeFactory// w  w w  . j a v  a 2s.  co  m
 * @since 2.2
 */
@Override
public JavaType getInputType(TypeFactory typeFactory) {
    return typeFactory.constructType(Integer.class);
}

From source file:com.tikinou.schedulesdirect.core.jackson.converters.ResponseCodeConverter.java

/**
 * Method that can be used to find out actual output (target) type; this
 * usually can be determined from type parameters, but may need
 * to be implemented differently from programmatically defined
 * converters (which can not change static type parameter bindings).
 *
 * @param typeFactory/*from  ww w. ja v  a 2 s.co m*/
 * @since 2.2
 */
@Override
public JavaType getOutputType(TypeFactory typeFactory) {
    return typeFactory.constructType(ResponseCode.class);
}

From source file:com.tikinou.schedulesdirect.core.jackson.converters.HeadendResultConverter.java

/**
 * Method that can be used to find out actual output (target) type; this
 * usually can be determined from type parameters, but may need
 * to be implemented differently from programmatically defined
 * converters (which can not change static type parameter bindings).
 *
 * @param typeFactory//w w  w .  j av  a2 s  .c o  m
 * @since 2.2
 */
@Override
public JavaType getOutputType(TypeFactory typeFactory) {
    return typeFactory.constructType(GetHeadendsResult.class);
}

From source file:capital.scalable.restdocs.jackson.FieldDocumentationGenerator.java

public List<FieldDescriptor> generateDocumentation(Type type, TypeFactory typeFactory)
        throws JsonMappingException {
    return generateDocumentation(typeFactory.constructType(type));
}