Skip to content

Interface: InterceptorContext

The handle passed to each interceptor.

import { appkit } from "@dbx-tools/appkit";
await appkit.createApp({
plugins: [server()],
interceptor: (ctx) => {
const auxiliary = startAuxiliary(ctx.env.databricksHost);
ctx.onLifecycle("shutdown", () => auxiliary.stop());
},
});

readonly env: ResolvedAppEnv

The env auto-configuration computed before boot.

onLifecycle(event, fn): void

Subscribe to an AppKit lifecycle event. Mirrors PluginContext.onLifecycle; the injected lifecycleBridge relays the real events here once the app boots. A handler registered for an event that already fired is NOT called retroactively (same semantics as AppKit).

LifecycleEvent

LifecycleHandler

void