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

RestClientRegistry should extend AbstractRegistry

    XMLWordPrintable

Details

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

    Description

      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;
          }
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD