@jems/di
Version:
An implementation of IoC pattern based on dependency injection that allows you to granulate and decouple your libraries or applications. Wrote using SOLID principles and a variety OOP patterns implementations.
16 lines (15 loc) • 748 B
TypeScript
import { ResolutionContext } from '../resolutionContext';
import { ServicingStrategy } from './servicingStrategy';
import { DependencyMetadata } from '..';
/**
* Represents a servicing strategy that transform and serve dependency metadata references as an instance.
*/
export declare class InstanceServicingStrategy implements ServicingStrategy {
/**
* Serve the result of the given reference target transformation.
* @param resolutionContext Represents the resolution context of the servicing.
* @param dependencyMetadata Represents the dependency metadata to transformed.
* @return The transformed reference target.
*/
serve(resolutionContext: ResolutionContext, dependencyMetadata: DependencyMetadata): any;
}