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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user