Packages

package modules

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. class ScalaObjectMapperModule extends TwitterModule

    TwitterModule to configure Jackson object mappers.

    TwitterModule to configure Jackson object mappers. Extend this module to override defaults or provide additional configuration to the bound ScalaObjectMapper instances.

    Example:

    import com.fasterxml.jackson.databind.{
      DeserializationFeature,
      Module,
      ObjectMapper,
      PropertyNamingStrategy
    }
    import com.twitter.finatra.jackson.modules.ScalaObjectMapperModule
    
    object MyCustomObjectMapperModule extends ScalaObjectMapperModule {
    
      override val propertyNamingStrategy: PropertyNamingStrategy =
        new PropertyNamingStrategy.KebabCaseStrategy
    
      override val additionalJacksonModules: Seq[Module] =
        Seq(MySimpleJacksonModule)
    
      override def additionalMapperConfiguration(mapper: ObjectMapper): Unit = {
        mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true)
       }
     }
  2. class YamlScalaObjectMapperModule extends ScalaObjectMapperModule

    com.twitter.inject.TwitterModule to configure Jackson YAML object mappers.

    com.twitter.inject.TwitterModule to configure Jackson YAML object mappers. Extend this module to override defaults or provide additional configuration to the bound ScalaObjectMapper instances.

    See also

    com.fasterxml.jackson.dataformat.yaml.YAMLFactory

Ungrouped