Package

com.wellfactored

playbindings

Permalink

package playbindings

Visibility
  1. Public
  2. All

Type Members

  1. trait Validator[W, V] extends AnyRef

    Permalink

    Defines a validation of values of type V in the context of another type W, for example if W instance wrap values of type V

    Defines a validation of values of type V in the context of another type W, for example if W instance wrap values of type V

    So if you have case class UserId(id: Long) you might define an implicit Validator[UserId, Long] that checks that the Long value is non-negative.

    W

    The context in which the validation takes place

    V

    The type of the values that will be validated

  2. trait ValidatorLowPriorityImplicits extends AnyRef

    Permalink
  3. trait ValueClassFormats extends ValueClassReads with ValueClassWrites

    Permalink
  4. trait ValueClassPathBindable extends AnyRef

    Permalink
  5. trait ValueClassQueryStringBindable extends AnyRef

    Permalink
  6. trait ValueClassReads extends AnyRef

    Permalink
  7. trait ValueClassUrlBinders extends ValueClassPathBindable with ValueClassQueryStringBindable

    Permalink
  8. trait ValueClassWrites extends AnyRef

    Permalink

Value Members

  1. object Validator extends ValidatorLowPriorityImplicits

    Permalink

    Pull the low-priority instances into the companion object so they'll be available in the implicit scope.

  2. object ValueClassFormats extends ValueClassFormats

    Permalink
  3. 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.playbinders.ValueClassUrlBinders._"

Ungrouped