You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <ji...@apache.org> on 2015/04/13 11:00:30 UTC

[jira] [Resolved] (QPID-6485) Remove superfluous find/get methods from the Broker configured object

     [ https://issues.apache.org/jira/browse/QPID-6485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Godfrey resolved QPID-6485.
-------------------------------
    Resolution: Fixed

> Remove superfluous find/get methods from the Broker configured object
> ---------------------------------------------------------------------
>
>                 Key: QPID-6485
>                 URL: https://issues.apache.org/jira/browse/QPID-6485
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Broker
>            Reporter: Keith Wall
>            Assignee: Keith Wall
>             Fix For: 6.0 [Java]
>
>
> The Broker object has a number of find/get methods which traverse deep into the model hierarchy, for instance, getSubjectCreator traverses Broker->Port->AuthenticationProvider->SubjectCreator.
> It turns out the callers of these methods already possess a more closer more suitable configured object within the model, for instance the ProtocolEngines already possess the Port.
> Refactor the code to remove these methods avoiding violating Demeter's Law quite so much.



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