diff --git a/src/ts/@overflow/commons/application/decorators/configuration.ts b/src/ts/@overflow/commons/application/decorators/configuration.ts index 3787be1..f810f52 100644 --- a/src/ts/@overflow/commons/application/decorators/configuration.ts +++ b/src/ts/@overflow/commons/application/decorators/configuration.ts @@ -9,10 +9,15 @@ import { TypeUtil, } from '@overflow/commons/core/type'; +import { + Injectable, +} from '@overflow/commons/di/decorators'; + export interface ConfigurationAnnotationAttributes { name?: string[]; } +@Injectable() export class ConfigurationAnnotation implements Annotation { public readonly attributes: ConfigurationAnnotationAttributes; diff --git a/src/ts/@overflow/commons/di/decorators/named.ts b/src/ts/@overflow/commons/di/decorators/named.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/ts/@overflow/commons/di/decorators/qualifier.ts b/src/ts/@overflow/commons/di/decorators/qualifier.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/ts/@overflow/commons/di/decorators/scope.ts b/src/ts/@overflow/commons/di/decorators/scope.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/ts/@overflow/commons/di/type/type.ts b/src/ts/@overflow/commons/di/type/type.ts index d4d9236..3dd918c 100644 --- a/src/ts/@overflow/commons/di/type/type.ts +++ b/src/ts/@overflow/commons/di/type/type.ts @@ -4,3 +4,8 @@ import { export type InstanceNameType = IdentityType; export type InstanceFactoryType = (...args: any[]) => any; + +export enum ScopeType { + Singleton = 'Singleton', + Transiant = 'Transiant', +}