Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: third_party/pkg/di/lib/src/injector_delagate.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/pkg/di/lib/src/injector.dart ('k') | third_party/pkg/di/lib/src/key.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 library di.injector_delegate;
2
3 import 'base_injector.dart';
4 import 'provider.dart';
5 import 'package:di/di.dart';
6
7 class InjectorDelagate implements BaseInjector, ObjectFactory {
8 BaseInjector _injector;
9 ResolutionContext _resolving;
10
11 InjectorDelagate(this._injector, this._resolving);
12
13 @override
14 bool get allowImplicitInjection => _injector.allowImplicitInjection;
15
16 @override
17 String get name => _injector.name;
18
19 @override
20 Injector get root => _injector.root;
21
22 @override
23 Set<Type> get types => _injector.types;
24
25 @override
26 Injector get parent => _injector.parent;
27
28 @override
29 dynamic get(Type type, [Type annotation]) =>
30 _injector.getInstanceByKey(new Key(type, annotation), this, _resolving);
31
32 @override
33 dynamic getInstanceByKey(Key key, Injector requester, ResolutionContext resolv ing) =>
34 _injector.getInstanceByKey(key, requester, resolving);
35
36 @override
37 dynamic getByKey(Key key) =>
38 _injector.getInstanceByKey(key, this, _resolving);
39
40 @override
41 Injector createChild(List<Module> modules,
42 {List forceNewInstances, String name}) =>
43 _injector.createChildWithResolvingHistory(modules, _resolving,
44 forceNewInstances: forceNewInstances,
45 name: name);
46
47 @override
48 newFromParent(List<Module> modules, String name) =>
49 _injector.newFromParent(modules, name);
50
51 @override
52 Object newInstanceOf(Type type, ObjectFactory factory,
53 Injector requestor, resolving) =>
54 _injector.newInstanceOf(type, factory, requestor, resolving);
55
56 @override
57 Injector createChildWithResolvingHistory(List<Module> modules, resolving,
58 {List forceNewInstances, String name}) {
59 throw new UnsupportedError(
60 'can\'t call createChildWithResolvingHistory on delegate');
61 }
62 }
OLDNEW
« no previous file with comments | « third_party/pkg/di/lib/src/injector.dart ('k') | third_party/pkg/di/lib/src/key.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698