Permalink
Browse files

bug: ServiceProvider as Singleton for all registered types lead to Ty…

…peErrors
  • Loading branch information...
MikeMitterer committed Feb 7, 2019
1 parent 595f772 commit 7bbac31155840ec650f3c5d0ef747bf12f72e903
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/m4d_ioc.dart
@@ -138,9 +138,9 @@ class InstanceService extends Service {
InstanceService(final String name) : super(name, ServiceType.Instance);
}

/// ServiceProvider acts as a Singleton-Factory
/// ServiceProvider acts as a Factory for T
class ServiceProvider<T> {
static dynamic _instance = null;
T _instance = null;

InstanceFactory<T> _factory;

0 comments on commit 7bbac31

Please sign in to comment.