Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alosaur/src/injection/providers/index.ts>FactoryProvider

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
interface FactoryProvider
import { type FactoryProvider } from "https://deno.land/x/alosaur@v0.23.0/src/injection/providers/index.ts";

Provide a dependency using a factory. Unlike the other providers, this does not support instance caching. If you need instance caching, your factory method must implement it.

Properties

useFactory: (dependencyContainer: DependencyContainer) => T