From 88469945b033405317a0be2ea106b60eeac410ea Mon Sep 17 00:00:00 2001 From: crusader Date: Sun, 31 Dec 2017 21:25:23 +0900 Subject: [PATCH] =?UTF-8?q?=E3=85=91=ED=9B=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commons/application/decorators/configuration.ts | 5 +++++ src/ts/@overflow/commons/di/decorators/named.ts | 0 src/ts/@overflow/commons/di/decorators/qualifier.ts | 0 src/ts/@overflow/commons/di/decorators/scope.ts | 0 src/ts/@overflow/commons/di/type/type.ts | 5 +++++ 5 files changed, 10 insertions(+) create mode 100644 src/ts/@overflow/commons/di/decorators/named.ts create mode 100644 src/ts/@overflow/commons/di/decorators/qualifier.ts create mode 100644 src/ts/@overflow/commons/di/decorators/scope.ts 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', +}