Added CMS_MODULE_CONFIGURATOR.

Added a default implementation of CMS_MODULE_CONGIRATOR.
Updated CMS_SERVICE, to use the new CMS_MODULE_CONFIGURATOR.
Updated Example.
This commit is contained in:
jvelilla
2014-10-07 17:52:13 -03:00
committed by Jocelyn Fiat
parent c94e5391e9
commit 965b0e9f7d
6 changed files with 128 additions and 59 deletions

View File

@@ -111,7 +111,6 @@ feature -- CMS Initialization
create layout.make_default
end
create Result.make (layout)
setup_modules (Result)
setup_storage (Result)
end
@@ -121,20 +120,26 @@ feature -- CMS Initialization
do
log.write_debug (generator + ".initialize_cms")
create cms.make (a_setup)
setup_modules (cms)
cms_service := cms
end
feature -- CMS setup
setup_modules (a_setup: CMS_SETUP)
setup_modules (a_service: CMS_SERVICE)
-- Setup modules to be added to the CMS ecosystem.
local
m: CMS_MODULE
do
to_implement ("To implement custom modules")
create {NODE_MODULE} m.make (a_service.setup)
m.enable
a_service.add_module (m)
end
setup_storage (a_setup: CMS_SETUP)
do
to_implement ("To implement custom storage")
end
end