lib/longleaf/services/application_config_manager.rb in longleaf-0.1.0 vs lib/longleaf/services/application_config_manager.rb in longleaf-0.2.0.pre.1
- old
+ new
@@ -4,21 +4,23 @@
require_relative 'service_definition_manager'
require_relative 'service_mapping_validator'
require_relative 'service_mapping_manager'
require_relative 'service_manager'
-# Manager which loads and provides access to the configuration of the application
module Longleaf
+ # Manager which loads and provides access to the configuration of the application
class ApplicationConfigManager
attr_reader :service_manager
attr_reader :location_manager
def initialize(config)
@location_manager = Longleaf::StorageLocationManager.new(config)
definition_manager = Longleaf::ServiceDefinitionManager.new(config)
mapping_manager = Longleaf::ServiceMappingManager.new(config)
@service_manager = Longleaf::ServiceManager.new(
- definition_manager: definition_manager, mapping_manager: mapping_manager)
+ definition_manager: definition_manager,
+ mapping_manager: mapping_manager,
+ app_manager: self)
end
end
end
\ No newline at end of file