qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wall (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPID-7142) Add child refactoring
Date Wed, 16 Mar 2016 08:45:33 GMT
Keith Wall created QPID-7142:
--------------------------------

             Summary: Add child refactoring
                 Key: QPID-7142
                 URL: https://issues.apache.org/jira/browse/QPID-7142
             Project: Qpid
          Issue Type: Improvement
          Components: Java Broker
            Reporter: Keith Wall


The add child function in the Broker is currently implemented on a per CO implementation basis.
 This code should be standardised - probably pulled up,  into {{ACO}}.

Currently each {{#addChild}} implementation knows about its supported child types.  This duplicates
the information from the Model.   This should be changed so that it is driven from the model.

Also some objects have restrictions on supported child types too {{ManagedObject#validChildTypes}}.
   This is currently expressed only through the metadata.  This information should be utilised
by the generic addChild function to automatically reject a child of the wrong type.

There is some tricky code in Bindings that might need to be considered first.

Currently if I try to create a child of the wrong type, this is reported to the REST user
as a 500.  This seems wrong.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message