Decorator

cask.router.Decorator$
See theDecorator companion trait
object Decorator

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def invoke[T](ctx: Request, endpoint: Endpoint[_, _, _], entryPoint: EntryPoint[T, _], routes: T, routeBindings: Map[String, String], remainingDecorators: List[Decorator[_, _, _]], bindings: List[Map[String, Any]]): Result[Any]

A stack of Decorators is invoked recursively: each decorator's wrapFunction is invoked around the invocation of all inner decorators, with the inner-most decorator finally invoking the route's EntryPoint.invoke function.

A stack of Decorators is invoked recursively: each decorator's wrapFunction is invoked around the invocation of all inner decorators, with the inner-most decorator finally invoking the route's EntryPoint.invoke function.

Each decorator (and the final Endpoint) contributes a dictionary of name-value bindings, which are eventually all passed to EntryPoint.invoke. Each decorator's dictionary corresponds to a different argument list on EntryPoint.invoke. The bindings passed from the router are aggregated with those from the EndPoint and used as the first argument list.

Attributes