Page Contents

Home > @loopback/context > 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).


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


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