def resolve_future_dependencies(__provider_name=None):
 new_providers = dict()
 if __provider_name:
  targets = _future_dependencies.pop(__provider_name, [])
  for target in targets:
   setattr(target, __provider_name, get_provider(__provider_name))
  return
 try:
  for (dependency, targets) in _future_dependencies.copy().items():
   if (dependency not in _REGISTRY):
    factory = _factories.get(dependency)
    if factory:
     provider = factory()
     new_providers[dependency] = provider
    else:
     raise UnresolvableDependencyException(dependency, targets)
   for target in targets:
    setattr(target, dependency, get_provider(dependency))
 finally:
  _future_dependencies.clear()
 return new_providers

def resolve_future_dependencies ( __provider_name = None ) : new_providers = dict ( ) if __provider_name : targets = _future_dependencies . pop ( __provider_name , [ ] ) for target in targets : setattr ( target , __provider_name , get_provider ( __provider_name ) ) return try : for ( dependency , targets ) in _future_dependencies . copy ( ) . items ( ) : if ( dependency not in _REGISTRY ) : factory = _factories . get ( dependency ) if factory : provider = factory ( ) new_providers [ dependency ] = provider else : raise UnresolvableDependencyException ( dependency , targets ) for target in targets : setattr ( target , dependency , get_provider ( dependency ) ) finally : _future_dependencies . clear ( ) return new_providers
force injection of all dependencies .