@inversifyjs/core
Version:
InversifyJs core package
23 lines • 1.01 kB
TypeScript
import { ServiceIdentifier } from '@inversifyjs/common';
import { Cloneable } from '../../common/models/Cloneable';
import { BindingActivation } from '../models/BindingActivation';
declare enum ActivationRelationKind {
moduleId = "moduleId",
serviceId = "serviceId"
}
export interface BindingActivationRelation {
[ActivationRelationKind.moduleId]?: number;
[ActivationRelationKind.serviceId]: ServiceIdentifier;
}
export declare class ActivationsService implements Cloneable<ActivationsService> {
#private;
private constructor();
static build(parent: ActivationsService | undefined): ActivationsService;
add(activation: BindingActivation, relation: BindingActivationRelation): void;
clone(): ActivationsService;
get(serviceIdentifier: ServiceIdentifier): Iterable<BindingActivation> | undefined;
removeAllByModuleId(moduleId: number): void;
removeAllByServiceId(serviceId: ServiceIdentifier): void;
}
export {};
//# sourceMappingURL=ActivationsService.d.ts.map