Refactorying the CMS component, to have an effective CMS_SERVICE, and setup as CMS_SETUP.

This way the application is much simpler, no need to implement deferred feature of CMS_SERVICE.
This commit is contained in:
Jocelyn Fiat
2013-02-15 12:33:58 +01:00
parent 9be87e8e15
commit 61c8388eba
13 changed files with 531 additions and 334 deletions

View File

@@ -7,9 +7,6 @@ note
class
CMS_CONFIGURATION
--inherit
-- SHARED_EXECUTION_ENVIRONMENT
create
make,
make_from_file
@@ -26,6 +23,7 @@ feature {NONE} -- Initialization
-- Initialize `Current'.
do
make
configuration_location := a_filename
import (a_filename)
analyze
end
@@ -40,6 +38,8 @@ feature {NONE} -- Initialization
feature -- Access
configuration_location: detachable READABLE_STRING_8
option (a_name: READABLE_STRING_GENERAL): detachable ANY
do
Result := options.item (a_name.as_string_8)
@@ -161,7 +161,6 @@ feature -- Change
var_location := res
end
get_root_location
local
res: STRING_32