##// END OF EJS Templates
tests, refactoring, fixes
tests, refactoring, fixes

File last commit:

r39:ed82314aa5c8 di-typescript
r40:6559c5b81a19 di-typescript
Show More
AggregateDescriptor.ts
24 lines | 579 B | video/mp2t | TypeScriptLexer
/ src / ts / di / AggregateDescriptor.ts
import { Descriptor } from "./interfaces";
import { ActivationContext } from "./ActivationContext";
export class AggregateDescriptor implements Descriptor {
_value: object;
constructor(value: object) {
this._value = value;
}
activate(context: ActivationContext, name: string) {
context.enter(name);
const v = context.parse(this._value, ".params");
context.leave();
return v;
}
isInstanceCreated(): boolean {
return false;
}
getInstance(): any {
throw new Error("Not supported");
}
}