Package com.fasterxml.jackson.datatype.joda

Examples of com.fasterxml.jackson.datatype.joda.JodaModule


    }

    public static ObjectMapper registerExtraModules(ObjectMapper objectMapper) {
        objectMapper.registerModule(new GuavaModule());
        objectMapper.registerModule(new Jdk7Module());
        objectMapper.registerModule(new JodaModule());
        return objectMapper;
    }
View Full Code Here


public class DefaultObjectMapperFactory implements ObjectMapperFactory {

  @Override
  public ObjectMapper createInstance() {
    final ObjectMapper mapper = new ObjectMapper();
    mapper.registerModule(new JodaModule());

    mapper.configure(JsonParser.Feature.ALLOW_COMMENTS, true);
    mapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, false);
    mapper.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, false);
    mapper.configure(
View Full Code Here

   
    // Needed for o.a. JsonFileState
    mapper.configure(JsonGenerator.Feature.AUTO_CLOSE_TARGET, false);
    mapper.configure(JsonParser.Feature.AUTO_CLOSE_SOURCE, false);
   
    mapper.registerModule(new JodaModule());
   
    return mapper;
  }
View Full Code Here

    }

    public static ObjectMapper registerExtraModules(ObjectMapper objectMapper) {
        objectMapper.registerModule(new GuavaModule());
        objectMapper.registerModule(new Jdk7Module());
        objectMapper.registerModule(new JodaModule());
        return objectMapper;
    }
View Full Code Here

    @Inject
    public JacksonJSONConverter(EnvironmentVariables environmentVariables) {
        this.environmentVariables = environmentVariables;
        mapper = new ObjectMapper();
        mapper.registerModule(new JodaModule());
        mapper.registerModule(new GuavaModule());
        mapper.registerModule(new TestOutcomeModule());
        mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
        mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
View Full Code Here

    protected void configureMapper() {
        MAPPER.setDateFormat(new SimpleDateFormat(DATE_FORMAT));
        MAPPER.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        MAPPER.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
        MAPPER.registerModule(new JodaModule());
    }
View Full Code Here

    protected void configureMapper() {
        MAPPER.setDateFormat(new SimpleDateFormat(DATE_FORMAT));
        MAPPER.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        MAPPER.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
        MAPPER.registerModule(new JodaModule());
    }
View Full Code Here

            this.errors = errors;

            storeLocation = Paths.get(settings.targetTestsRoot());

            objectMapper = new ObjectMapper();
            objectMapper.registerModule(new JodaModule());
            objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);

            lastResults = loadLastResults();

            System.setOut(out);
View Full Code Here

    public static final String READER_NAME = "FrontObjectReader";

    @Provides @Named(MAPPER_NAME)
    public ObjectMapper mapper(final Factory factory) {
        ObjectMapper mapper = new ObjectMapper()
                .registerModule(new JodaModule())
                .registerModule(new GuavaModule())
                .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
                .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
                .disable(DeserializationFeature.EAGER_DESERIALIZER_FETCH)
                .disable(SerializationFeature.EAGER_SERIALIZER_FETCH);
View Full Code Here

    public ParseConfiguration(String applicationId, String apiKey){
        this.parseClientId = applicationId;
        this.parseClientApiKey = apiKey;

        objectMapper = new ObjectMapper();
        objectMapper.registerModule(new JodaModule());
        objectMapper.registerModule(new MrBeanModule());
    }
View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.datatype.joda.JodaModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.