[
https://issues.jboss.org/browse/TEIIDDES-1048?page=com.atlassian.jira.plu...
]
Dan Florian resolved TEIIDDES-1048.
-----------------------------------
Release Notes Docs Status: Not Required
Resolution: Done
Changed ModelExtensionAssistant API such that each assistant is now only responsible for
obtaining/creating information relevant to their own namespace. Created an aggregator
class that can be used to combine information from multiple assistants.
ModelExtensionAssistant API Should Be Changed To Remove Methods That
Pertain To Namespaces Other Than Their Own
---------------------------------------------------------------------------------------------------------------
Key: TEIIDDES-1048
URL:
https://issues.jboss.org/browse/TEIIDDES-1048
Project: Teiid Designer
Issue Type: Task
Components: Modeling
Affects Versions: 7.4
Reporter: Dan Florian
Assignee: Dan Florian
Fix For: 7.6
A ModelExtensionAssistant pertains to one specific namespace yet has methods that have
parameters that take a namespace or have methods that return data gathered with knowledge
of other namespaces. This abstract class API should be changed to remove methods like
this. For instance, the "supports(Object, String)" method takes a namespace
prefix as the second parameter. This second parameter should be deleted as an assistant
knows its own namespace prefix. Also the method "getSupportedNamespaces(Object)"
should be deleted. An assistant should only be responsible for knowing if its own
namespace is supported by a model object. All methods in the API should be checked for
similar issues. And all subclasses should be checked to make sure similar issues
aren't present.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira