-
Improvement
-
Resolution: Duplicate
-
Neutral
-
None
-
1.5.3
-
None
-
None
-
-
Empty show more show less
Whenever I am trying to register a restClient I end up with this warning:
2019-05-06 14:12:03,672 WARN agnolia.ui.framework.availability.IsDefinitionRule: Error evaluating availability for node [/modules/salesforce-rest-connector/restClient/salesforceClient], returning false: null
I believe this happens because IsDefinitionRule checks to see if the configuration has a registered definition in the registry:
@SuppressWarnings("unchecked") private boolean hasDefinitionFor(String nodePath) { // We're doing this stuff in a sub-optimal way unless the issue MAGNOLIA-6086 is fixed for (Registry registry : registries) { Collection<DefinitionProvider> providers = registry.getAllProviders(); for (DefinitionProvider provider : providers) { if (provider.getMetadata().getLocation().equals(nodePath)) { return true; } } } return false; }
Acceptance criteria
- is duplicated by
-
MGNLRESTCL-31 Refactor REST-Client registry to be a "5.4 registry", with a YAML configuration source
- Closed