<div dir="ltr"><div class="gmail_extra"><div>Hi all,</div><div><br></div><div>I&#39;m trying to add more commands in Forge... but I have to say, I&#39;m a bit lost. So, I&#39;ve made a quick UML class diagram. </div><div><br></div><div>As you can see in the attached diagram (UIForge.png), most of the Java EE commands extend AbstractJavaEECommand, which makes sense. But not all of them (NewBeanCommand (CDI), ValidationNewAnnotationCommandImpl, NewQualifierCommand....). And some times you have an extra level of abstraction (AbstractFacesCommand). Same for the Java commands. JavaClassCommandImpl extend AbstractJavaSourceCommand but JavaAddAnnotationCommand and JavaFieldCommand inherit from AbstractProjectCommand.</div><div><br></div><div><br></div><div>Then, when you dive into a command (UIForgeStructure.pgn), some commands use interface and implementation (see in the second diagram JavaAddAnnotationCommandImpl implementing JavaAddAnnotationCommand), some don&#39;t (e.g. NewQualifierCommand). Is there a reason ?</div><div><br></div><div><br></div><div>Correct me if I&#39;m wrong, but the way I see it would be (HowIseeIt.png) : under AbstractJavaEECommand you have a set of AbstractValidationCommand, AbstractCDICommand, AbstractJPACommand.... each implementing PrerequisiteCommandsProvider (this way, each command sets up its own pre-requisite). And then, under AbstractCDICommand you have all the NewQualifierCommand, NewBeanCommand....</div><div><br></div><div><br></div><div>What do you think ? Am I the only one getting a little bit lost ;o)</div><div><br></div><div>What do you think of re-structuring the class hierarchy ?</div><div><br></div>-- <br>Antonio Goncalves <br>Software architect and Java Champion<br><br><a href="http://www.antoniogoncalves.org/" target="_blank">Web site</a> | <a href="http://twitter.com/agoncal" target="_blank">Twitter</a> | <a href="http://www.linkedin.com/in/agoncal" target="_blank">LinkedIn</a> | <a href="http://www.parisjug.org/" target="_blank">Paris JUG</a> | <a href="http://www.devoxx.fr/" target="_blank">Devoxx France</a>
</div></div>