This commit is contained in:
crusader 2017-07-31 12:43:16 +09:00
parent f3076b7a91
commit 57d4784ba2
4 changed files with 5 additions and 6 deletions

View File

@ -2,6 +2,6 @@ export const POUCH_DEFAULT_QUALIFIER = Symbol('__QUALIFIER__');
export enum PouchScope {
SINGLETON,
PROTOTYPE,
TRANSIENT,
}

View File

@ -1,3 +1,4 @@
import { DecoratorType, Newable } from '@overflow/commons/core/constants';
import * as METADATA from '../constants';
import {
@ -99,7 +100,7 @@ class PouchFactory {
instance = this._newInstance(clazz, pouchDefinition, args);
}
} else {
if (pouchDefinition.scope === PouchScope.PROTOTYPE) {
if (pouchDefinition.scope === PouchScope.TRANSIENT) {
instance = this._newInstance(clazz, pouchDefinition, args);
} else {
if (this._hasPouchInstance(clazz, qualifier)) {

View File

@ -10,7 +10,7 @@ import Service from '@overflow/discovery/api/model/Service';
import MetaSensorItem from '@overflow/meta/api/model/MetaSensorItem';
import * as Utils from '@overflow/commons/utils/Utils';
import * as Utils from '@overflow/commons/util/Utils';

View File

@ -17,9 +17,7 @@ import {
import MetaSensorItemType from '../../api/model/MetaSensorItemType';
import MetaSensorItem from '../../api/model/MetaSensorItem';
import * as Utils from '@overflow/commons/utils/Utils';
import * as Utils from '@overflow/commons/util/Utils';
export interface SensorItemTreeStateProps {