If the factory is subclassed and a creation method is overridden to use a different implementation class, an additional «!new» Usage may be used from the subclass (or the overridden subclass method).
Usages from methods/operations indicate clearly exactly which implementation Class is used for which Interface product, however there are certain graphical disadvantages:
- It is very difficult to tell when method the Usage is drawn from, since it is indicated by a small circle connection point on the right-hand-side of the method/operation text.
- If you close the operations compartment of a Class/Component symbol the Usage relationship no longer appears ! It is still in the model, but it does not work well for graphically associative modelling.
© Copyright 2001 - 2016 Webel IT Australia (ABN: 67 677 268 579). All rights reserved (except as specified below).
PHP code examples from Webel IT Australia on this site are distributed under the GNU General Public License.
Excludes text and code snippets from Drupal.org quoted for educational purposes.
Drupal’s online documentation is © 2000-2014 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0.
PHP code from Drupal.org is distributed under the GNU General Public License.
Drupal® is a registered trademark of Dries Buytaert.
Text quoted from Wikipedia for educational purposes is made available under the Creative Commons Attribution-ShareAlike License.
Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
Site developed by Webel IT Australia.