* Create a view of the context chain with the given binding filter * @param filter - A function to match bindings * @param comparator - A function to sort matched bindings * @param options - Resolution options
(
filter: BindingFilter,
comparator?: BindingComparator,
options?: Omit<ResolutionOptions, 'session'>,
)
| 444 | * @param options - Resolution options |
| 445 | */ |
| 446 | createView<T = unknown>( |
| 447 | filter: BindingFilter, |
| 448 | comparator?: BindingComparator, |
| 449 | options?: Omit<ResolutionOptions, 'session'>, |
| 450 | ) { |
| 451 | const view = new ContextView<T>(this, filter, comparator, options); |
| 452 | view.open(); |
| 453 | return view; |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * Check if a binding exists with the given key in the local context without |