| 28 | ModuleLoadStrategy::~ModuleLoadStrategy() = default; |
| 29 | |
| 30 | const ModuleLoadStrategy::ComponentLoadStrategy* ModuleLoadStrategy::getStrategyForComponentPath( |
| 31 | const StringBox& componentPath) const { |
| 32 | const auto& it = _strategies.find(componentPath); |
| 33 | if (it == _strategies.end()) { |
| 34 | return nullptr; |
| 35 | } |
| 36 | |
| 37 | return &it->second; |
| 38 | } |
| 39 | |
| 40 | Result<Ref<ModuleLoadStrategy>> ModuleLoadStrategy::parse(const Byte* data, size_t length) { |
| 41 | auto result = jsonToValue(data, length); |
no test coverage detected