Package

com.wellfactored

playbindings

Permalink

package playbindings

Visibility
  1. Public
  2. All

Type Members

  1. trait GenericValueWrapper extends AnyRef

    Permalink

    Provide a generic function that can generate Shapeless Generic instances for case classes with a single member, e.g.

    Provide a generic function that can generate Shapeless Generic instances for case classes with a single member, e.g. Foo(s: String) where the Generic.Repr type is String rather than String :: HNil. From this we can build the various binding types that Play uses, i.e. json Reads and Writes instances as well as PathBindables and QueryStringBindables

  2. trait ValueClassFormats extends ValueClassReads with ValueClassWrites

    Permalink
  3. trait ValueClassPathBindable extends GenericValueWrapper

    Permalink
  4. trait ValueClassQueryStringBindable extends GenericValueWrapper

    Permalink
  5. trait ValueClassReads extends GenericValueWrapper

    Permalink
  6. trait ValueClassUrlBinders extends ValueClassPathBindable with ValueClassQueryStringBindable

    Permalink
  7. trait ValueClassWrites extends GenericValueWrapper

    Permalink

Value Members

  1. object ValueClassFormats extends ValueClassFormats

    Permalink
  2. object ValueClassUrlBinders extends ValueClassUrlBinders

    Permalink

    import ValueClassUrlBinders._ to get both the ValueClassPathBindable and ValueClassQueryStringBindable generators in implicit scope.

    import ValueClassUrlBinders._ to get both the ValueClassPathBindable and ValueClassQueryStringBindable generators in implicit scope. In particular, add this to your build.sbt to import them into the routes file:

    routesImport += "com.wellfactored.playbindings.ValueClassUrlBinders._"

Ungrouped