Object/Class

com.twitter.finatra.jackson

ScalaObjectMapper

Related Docs: class ScalaObjectMapper | package jackson

Permalink

object ScalaObjectMapper

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaObjectMapper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Builder extends Product with Serializable

    Permalink

    A Builder for creating a new ScalaObjectMapper.

    A Builder for creating a new ScalaObjectMapper. E.g., to build a new instance of a ScalaObjectMapper.

    For example,

    ScalaObjectMapper.builder
      .withPropertyNamingStrategy(new PropertyNamingStrategy.UpperCamelCaseStrategy)
      .withNumbersAsStrings(true)
      .withAdditionalJacksonModules(...)
      .objectMapper

    or

    val builder =
      ScalaObjectMapper.builder
        .withPropertyNamingStrategy(new PropertyNamingStrategy.UpperCamelCaseStrategy)
        .withNumbersAsStrings(true)
        .withAdditionalJacksonModules(...)
    
      val mapper = builder.objectMapper
      val camelCaseMapper = builder.camelCaseObjectMapper

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(injector: Injector, underlying: JacksonScalaObjectMapperType): ScalaObjectMapper

    Permalink

    Creates a new ScalaObjectMapper with the given Injector wrapping an underlying JacksonScalaObjectMapperType.

    Creates a new ScalaObjectMapper with the given Injector wrapping an underlying JacksonScalaObjectMapperType.

    injector

    a configured (nullable) Injector.

    underlying

    the JacksonScalaObjectMapperType to wrap.

    returns

    a new ScalaObjectMapper

    Note

    the given Injector can be null.

  5. def apply(underlying: JacksonScalaObjectMapperType): ScalaObjectMapper

    Permalink

    Creates a new ScalaObjectMapper wrapping an underlying JacksonScalaObjectMapperType.

    Creates a new ScalaObjectMapper wrapping an underlying JacksonScalaObjectMapperType.

    underlying

    the JacksonScalaObjectMapperType to wrap.

    returns

    a new ScalaObjectMapper

  6. def apply(injector: Injector): ScalaObjectMapper

    Permalink

    When not using injection, this factory method can be used but be aware that only default com.fasterxml.jackson.databind.InjectableValues are supported via this instantiation when given a non-null com.google.inject.Injector.

    When not using injection, this factory method can be used but be aware that only default com.fasterxml.jackson.databind.InjectableValues are supported via this instantiation when given a non-null com.google.inject.Injector. By default only com.fasterxml.jackson.databind.InjectableValues provided by the object graph is supported during deserialization (case class fields annotated with @Inject).

    injector

    a configured (nullable) Injector.

    returns

    a new ScalaObjectMapper instance.

    Note

    the preferred way of obtaining a ScalaObjectMapper is through injection using the FinatraJacksonModule.

    See also

    com.fasterxml.jackson.databind.InjectableValues

  7. def apply(): ScalaObjectMapper

    Permalink

    When not using injection, this factory method can be used.

    When not using injection, this factory method can be used. Use of this method will NOT configure the underlying mapper for supporting com.fasterxml.jackson.databind.InjectableValues provided by the object graph. To configure the ability to "inject" values during deserialization which come from the object graph a non-null Injector is required, please see: Injector).

    returns

    a new ScalaObjectMapper instance.

    Note

    the preferred way of obtaining a ScalaObjectMapper is through injection using the ScalaObjectMapperModule.

    See also

    com.fasterxml.jackson.databind.InjectableValues

    Injector)

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def builder: Builder

    Permalink

    Build a new instance of a ScalaObjectMapper.

    Build a new instance of a ScalaObjectMapper.

    For example,

    ScalaObjectMapper.builder
     .withPropertyNamingStrategy(new PropertyNamingStrategy.UpperCamelCaseStrategy)
     .withNumbersAsStrings(true)
     .withAdditionalJacksonModules(...)
     .objectMapper

    or

    val builder =
     ScalaObjectMapper.builder
       .withPropertyNamingStrategy(new PropertyNamingStrategy.UpperCamelCaseStrategy)
       .withNumbersAsStrings(true)
       .withAdditionalJacksonModules(...)
    
    val mapper = builder.objectMapper
    val camelCaseMapper = builder.camelCaseObjectMapper
  10. final def camelCaseObjectMapper(underlying: JacksonScalaObjectMapperType): ScalaObjectMapper

    Permalink

    Utility to create a new ScalaObjectMapper explicitly configured with PropertyNamingStrategy.LOWER_CAMEL_CASE as a PropertyNamingStrategy wrapping the given JacksonScalaObjectMapperType.

    Utility to create a new ScalaObjectMapper explicitly configured with PropertyNamingStrategy.LOWER_CAMEL_CASE as a PropertyNamingStrategy wrapping the given JacksonScalaObjectMapperType.

    Note

    the underlying mapper is copied (not mutated) to produce the new ScalaObjectMapper with a PropertyNamingStrategy.LOWER_CAMEL_CASE PropertyNamingStrategy.

  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def snakeCaseObjectMapper(underlying: JacksonScalaObjectMapperType): ScalaObjectMapper

    Permalink

    Utility to create a new ScalaObjectMapper explicitly configured with PropertyNamingStrategy.SNAKE_CASE as a PropertyNamingStrategy wrapping the given JacksonScalaObjectMapperType.

    Utility to create a new ScalaObjectMapper explicitly configured with PropertyNamingStrategy.SNAKE_CASE as a PropertyNamingStrategy wrapping the given JacksonScalaObjectMapperType.

    Note

    the underlying mapper is copied (not mutated) to produce the new ScalaObjectMapper with a PropertyNamingStrategy.SNAKE_CASE PropertyNamingStrategy.

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped