> I have an interface(there is a "realize" link between this

> interface and the abstract class), an abstract class(with Entity stereotype, I donīt if this

> is the right stereotype for an abstract class) and some persistence classses (with Entity

> stereotypes),I run the andromda with maven all the java files are generated except the

> files for the interface of course. My question is how can one generate java files for

> interfaces?

 

[Greg] I wanted this too.  I understand the point of view that AndroMDA is for modeling Spring/Hibernate/Struts/etc, but there are also classes and interfaces I want to design in my system that have nothing to do with Spring/Hibernate/Struts/etc.  So it would be nice to model general Java classes and generate the code.  That's why I entered enhancement request JAVA-6.

 

For example, I wanted one of my ValueObject classes to implement List (so I can use it with JSP tags).  I tried a Realize association to an Interface named “List” in package “java.util”, but nothing was generated.

 

The closest I could get was to create a Generalization association from my ValueObject to a class “TreeSet” in package “java.util”, which generated:

 

      public class Foo extends java.util.TreeSet

 

Which I think will work with a JSP tag, but isn’t quite as nice as “implements java.util.List”.

 

I think the JAVA-6 enhancement will allow this.

 

 

Greg Holmberg

 

Reply via email to