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

Use explicit ArcId in GraphChangeHandler methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2.M1
    • Core Library
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: