@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.
15 lines (14 loc) • 627 B
TypeScript
import { ResolutionContext } from '../resolutionContext';
import { DependencyMetadata } from '..';
/**
* Represenst an strategy to deliver targets with an specific strategy.
*/
export interface DeliveryStrategy {
/**
* Deliver the transformed reference in the provided dependency metadata.
* @param resolutionContext Represents the context in which the request was made.
* @param dependencyMetadata Represents the dependency metadata that will be delivered.
* @return The transformed reference.
*/
deliver(resolutionContext: ResolutionContext, dependencyMetadata: DependencyMetadata): any;
}