refactor(di): cleanup
This commit is contained in:
parent
c3d9b5c91e
commit
92b2559109
|
@ -3,10 +3,10 @@ import {List, MapWrapper, ListWrapper} from 'facade/collection';
|
||||||
import {reflector} from './reflector';
|
import {reflector} from './reflector';
|
||||||
import {Key} from './key';
|
import {Key} from './key';
|
||||||
|
|
||||||
@FIELD('final key:Key')
|
|
||||||
@FIELD('final asFuture:bool')
|
|
||||||
@FIELD('final lazy:bool')
|
|
||||||
export class Dependency {
|
export class Dependency {
|
||||||
|
@FIELD('final key:Key')
|
||||||
|
@FIELD('final asFuture:bool')
|
||||||
|
@FIELD('final lazy:bool')
|
||||||
constructor(key:Key, asFuture:bool, lazy:bool) {
|
constructor(key:Key, asFuture:bool, lazy:bool) {
|
||||||
this.key = key;
|
this.key = key;
|
||||||
this.asFuture = asFuture;
|
this.asFuture = asFuture;
|
||||||
|
|
|
@ -4,9 +4,9 @@ import {FIELD, int, bool} from 'facade/lang';
|
||||||
var _allKeys = {};
|
var _allKeys = {};
|
||||||
var _id:int = 0;
|
var _id:int = 0;
|
||||||
|
|
||||||
@FIELD('final token')
|
|
||||||
@FIELD('final id:int')
|
|
||||||
export class Key {
|
export class Key {
|
||||||
|
@FIELD('final token')
|
||||||
|
@FIELD('final id:int')
|
||||||
constructor(token, id:int) {
|
constructor(token, id:int) {
|
||||||
this.token = token;
|
this.token = token;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
|
Loading…
Reference in New Issue