---
lang: en
title: 'API docs: context.genericinterceptorchain._constructor__1'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.context.genericinterceptorchain._constructor__1.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [GenericInterceptorChain](./context.genericinterceptorchain.md) &gt; [(constructor)](./context.genericinterceptorchain._constructor__1.md)

## 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).

<b>Signature:</b>

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

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  context | <code>C</code> | Context object |
|  filter | <code>BindingFilter</code> | A binding filter function to select interceptors |
|  comparator | <code>BindingComparator</code> | An optional comparator to sort matched interceptor bindings |


