Skip to content

Config-based module creation improvement #136

@febret

Description

@febret

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions