Applies all registered handlers on a given target class.
Parameters
target: Function
instance: {}
[key: string]: any
Returns void
create
create<T>(identifier: ServiceIdentifier<any>, service?: ServiceMetadata<any, any>): T
Create a new instance of value
Type parameters
T
Parameters
identifier: ServiceIdentifier<any>
Optional service: ServiceMetadata<any, any>
Returns T
get
get<T>(identifier: ServiceIdentifier<T> | ObjectType<T> | { service: T }): T
Retrieves the service with given name or type from the service container.
Optionally, parameters can be passed in case if instance is initialized in the container for the first time.
Type parameters
T
Parameters
identifier: ServiceIdentifier<T> | ObjectType<T> | { service: T }
Applies all registered handlers on a given target class.