class NoOpHookManager

A TransformationHookManager that does absolutely nothing.

Why this exists

The TransformationPipeline always holds a reference to a TransformationHookManager. Rather than null-checking on every iteration, the pipeline uses NoOpHookManager as its default. All three execute* methods are overridden to be empty, and hasHooks() always returns false, so the pipeline's if (hookManager.hasHooks()) guard short-circuits immediately with no virtual-dispatch overhead.

When to use

You never need to construct this directly. It is automatically used as the default in:

  • new TransformationPipeline() (no hookManager arg)
  • new FilterCompiler() (no hookManager in options)
  • new FilterCompiler(logger) (legacy constructor path)

Methods

executeAfterHooks(_context: TransformationHookContext & { inputCount: number; outputCount: number; durationMs: number; }): Promise<void>
executeErrorHooks(_context: TransformationHookContext & { error: Error; }): Promise<void>
hasHooks(): boolean

Usage

import { NoOpHookManager } from ".";