io.fintrospect.parameters.Bindable.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fintrospect_2.10 Show documentation
Show all versions of fintrospect_2.10 Show documentation
Library that adds self-documentation to Finagle server endpoint services
package io.fintrospect.parameters
/**
* Allows binding of a value to an entity (eg. query/header/field...)
*/
trait Bindable[T, B <: Binding] {
/**
* Bind the value to this parameter
* User-friendly synonym for -->(), which is why the method is final.
* @return the binding
*/
final def of(value: T): Iterable[B] = -->(value)
/**
* Bind the value to this parameter
* @return the binding
*/
def -->(value: T): Iterable[B]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy