you should always develop to interfaces or abstract classes, they convey the 
contract and hide the implementation details



when working with the POJOs only use the interfaces, never declare a type with 
suffix *Impl



the only time you will use the *Impl is when implementing them :-)



the factory is designed to avoid the need for you to know the implementation 
class



this is a good practice because:



1. you model MyEntity

2. the interface is called MyEntity

3. only the factory 'knows' the implementation for MyEntity

4. you will never need to worry about the implementation of MyEntity when using 
it



--> you use what you have modeled, not what has been generated 'extra'
--
Wouter Zoons - [EMAIL PROTECTED]

http://www.andromda.org/
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3737#3737
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to