omegalib icon indicating copy to clipboard operation
omegalib copied to clipboard

Config-based module creation improvement

Open febret opened this issue 10 years ago • 0 comments

Make it possible to use the module config section name as the config class, if a class config value is not present in the section. So i.e. this:

modules:
{
   imagePointer: { class="ImagePointerFactory"; image="foo.png" }; 
}

become this

modules:
{
   ImagePointerFactory: { image="foo.png" }; 
}

Change is in SystemManager.cpp:508 It could also be useful to have a method in systemManager such as

  • SystemManager.findModuleConfig(String name) that finds the config section for a module in the app or sysconfig file based on the name used (it;s just a search in config/modules for both sys and appcfg).

febret avatar Jan 24 '15 23:01 febret