registerInstance<T extends Object> method
Implementation
void registerInstance<T extends Object>(InstanceCreator<T> instanceCreator) {
if (!appInstances.containsKey(T)) {
appInstances[T] = instanceCreator();
}
}
void registerInstance<T extends Object>(InstanceCreator<T> instanceCreator) {
if (!appInstances.containsKey(T)) {
appInstances[T] = instanceCreator();
}
}