I'm in a bit of a quandary. I have the following situation:
I am modeling a set of Java classes. One class (say, Sender) sends messages to another class (say, Receiver). The method in Sender that sends messages to Receiver holds a reference to the Receiver object in a local method variable as opposed to an instance variable. I want the model to show that Sender sends messages to Receiver, so I think I want to create an association between Sender and Receiver. But I have two problems when I forward engineer:
1) Rose insists on creating an instance variable for the Receiver class object, which I don't want since I've got the reference in a local variable.
2) Rose doesn't add an import for the class if it is in another package. The only good way I've found to force Rose to include the import is to create a dependency to the Receiver class.
On a similar note, I have the same problem showing associations to static classes (i.e., classes that only have static methods and never get instantiated).
Anyone got any ideas how to convince Rose to generate the proper Java code in this situation?
Steven F. Caswell
Senior Software Architect
BuildNet
______________________________________________________
250 Scientific Drive, Suite 800, Atlanta, GA 30092
main: 678-225-2260 | fax: 678-225-2459 | direct: 678-225-2320
[EMAIL PROTECTED] | http://www.buildnet.com
