Page Contents

Home > @loopback/context > GenericInterceptorChain > (constructor)

GenericInterceptorChain.(constructor)

Create an invocation interceptor chain with a binding filter and comparator. The interceptors are discovered from the context using the binding filter and sorted by the comparator (if provided).

Signature:

constructor(context: C, filter: BindingFilter, comparator?: BindingComparator);

Parameters

Parameter Type Description
context C Context object
filter BindingFilter A binding filter function to select interceptors
comparator BindingComparator (Optional) An optional comparator to sort matched interceptor bindings