Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2555

Use explicit ArcId in GraphChangeHandler methods

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.M1
    • Component/s: Core Library
    • Labels:
      None

      Description

      GraphChangeHandler uses plain Object as arc identifier:

      ..
      void arcCreated(Object nodeId, Object targetNodeId, Object arcId);
      void arcDeleted(Object nodeId, Object targetNodeId, Object arcId);
      ..
      

      We can introduce ArcId object instead that can hold forward and reverse arc names:

      public class ArcId {
          private final String forwardArc;
          private final String reverseArc;
          // ...
      }
      

      This change should simplify code maintenance and refactoring.

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              ntimofeev Nikita Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: