Examples of JodaModule


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

        module.addDeserializer(Money.class, new MoneyDeserializer());
        module.addDeserializer(CurrencyUnit.class, new CurrencyUnitDeserializer());
        module.addSerializer(CurrencyUnit.class, new CurrencyUnitSerializer());
        result.registerModule(module);

        result.registerModule(new JodaModule());

        return result;
    }
View Full Code Here

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

  private static final String suffix = "-design.json";

  @Autowired
  public CpCouchServer(@Value("${couchdb.name}") String databaseName) {
    super(new Module[]{
      new JodaModule(),
      new YakJacksonModule(),
      new CpJacksonModule()});

    this.databaseName = ExceptionUtils.assertNotZeroLength(databaseName, "databaseName");
  }
View Full Code Here

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

@Component
public class CpServerObjectMapper extends YakJacksonObjectMapper {

  public CpServerObjectMapper() {
    super(Arrays.asList(
                new JodaModule(),
                new YakJacksonModule(),
                new CpJacksonModule()),
        Collections.<YakJacksonInjectable>emptyList());
  }
View Full Code Here

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

    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

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

    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

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

    private static ObjectMapper configure(ObjectMapper mapper) {
        mapper.registerModule(new GuavaModule());
        mapper.registerModule(new LogbackModule());
        mapper.registerModule(new GuavaExtrasModule());
        mapper.registerModule(new JodaModule());
        mapper.registerModule(new AfterburnerModule());
        mapper.registerModule(new FuzzyEnumModule());
        mapper.registerModule(new Jdk7Module());
        mapper.setPropertyNamingStrategy(new AnnotationSensitivePropertyNamingStrategy());
        mapper.setSubtypeResolver(new DiscoverableSubtypeResolver());
View Full Code Here

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

  }

  private static class JodaModuleRegistrar {

    public static void registerModule(ObjectMapper mapper) {
      mapper.registerModule(new JodaModule());
      mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
    }
View Full Code Here

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

   */
  public DefaultJacksonHttpMessageConverter() {
    super(new MediaType("application", "json", DEFAULT_CHARSET));

    // Register modules
    objectMapper.registerModule(new JodaModule());
    objectMapper.registerModule(new GuavaModule());
   
    // Sample Date Format
    // objectMapper.setDateFormat(new SimpleDateFormat("MM-dd-yyyy"));
  }
View Full Code Here

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

    static ObjectMapper mapper = new ObjectMapper();

    @BeforeClass
    public static void setup() {
        mockServer = MockRestServiceServer.createServer(restTemplate);
        mapper.registerModule(new JodaModule());
        mapper.registerModule(new GuavaModule());
    }
View Full Code Here

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

    static ObjectMapper mapper = new ObjectMapper();

    @BeforeClass
    public static void initModules() {
        mapper.registerModule(new JodaModule());
        mapper.registerModule(new GuavaModule());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.