Uploaded image for project: 'REST Client'
  1. REST Client
  2. MGNLRESTCL-54

RestClientRegistry should extend AbstractRegistry

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Neutral Neutral
    • None
    • 1.5.3
    • None
    • None

      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

              Unassigned Unassigned
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: