import { DependencyInjectionFactory } from "https://deno.land/x/mandarinets@v2.3.2/main-core/dependency-injection/diFactory.ts";
Methods
componentDependencyResolver(componentRegistry: ComponentsRegistry)
Resolves all the dependencies a component has (Fields and constructor). Note MANUAL_COMPONENTS are not resolved since they were theorically resolved by the user.
constructorResolver<T>(componentSource: Mandarine.MandarineCore.ComponentRegistryContext, componentRegistry: Mandarine.MandarineCore.IComponentsRegistry): T | undefined
Resolve dependencies from a component's constructor. This method will look for the requested dependencies in the DI Container at mandarine compile time.
getComponentByType(type: any)
Get component of dependency by Type
getComponentsByComponentType<T>(type: Mandarine.MandarineCore.ComponentTypes): Array<T>
Get component of dependency by component type
getDependency(type: ClassType)
Get a Dependency from the DI Container programatically
getInjectable(type: ClassType)
Get a Dependency from the DI Container programatically
methodArgumentResolver()
object: any,
methodName: string,
context: Mandarine.Types.RequestContext,
Resolves all the requested data by a HTTP Handler method. This function is used when requests are received