Module: SmartCore::Injection::Locator::Factory Private

Defined in:
lib/smart_core/injection/locator/factory.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Class Method Summary collapse

Class Method Details

.create(injection_settings, import_key, import_path) ⇒ SmartCore::Injection::Locator

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

Returns:

Since:

  • 0.1.0



12
13
14
15
16
17
# File 'lib/smart_core/injection/locator/factory.rb', line 12

def create(injection_settings, import_key, import_path)
  container_proxy = create_container_proxy(injection_settings)
  create_locator(injection_settings, import_path, container_proxy).tap do |locator|
    control_injection_memoization(injection_settings, container_proxy, locator, import_path)
  end
end