Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1177

[proton-j] Source and Target interfaces are incomplete and confusing



    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: proton-0.12.1
    • Fix Version/s: proton-j-future
    • Component/s: proton-j
    • Labels:


      The org.apache.qpid.proton.amqp.transport.Source and org.apache.qpid.proton.amqp.transport.Target interfaces are used on the Link interface setters/getters, however they container almost none of the methods needed to use the Source and Target. The impls have all the necessary methods, but folks would currently need to cast the values to them in order to use in almost any meaningful way, and they exist in a completely different package which makes them less than obvious. Finally, most of the interfaces for engine objects have a factory in their interface for creating them, the Source and Target ones do not, making their use less obvious again.

      Changing the existing interface/impl names/packages would break most existing uses, so we probably want to avoid that, but we should at least update the interfaces to contain the required methods, and perhaps add the equivalent factories to make their creation more obvious.




            • Assignee:
              robbie Robbie Gemmell
              robbie Robbie Gemmell
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: