You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2015/04/10 11:47:12 UTC
[jira] [Created] (QPID-6485) Remove superfluous find/get methods
from the Broker configured object
Keith Wall created QPID-6485:
--------------------------------
Summary: 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