Issue Details (XML | Word | Printable)

Key: CJB-14
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Thorsten Kamann
Reporter: Thorsten Kamann
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fornax Cartridge JavaBasic

Generate an abstract method for interface operations in the abstract implementation

Created: 18/May/07 10:57 PM   Updated: 19/May/07 05:41 PM
Component/s: Generator
Affects Version/s: 1.3.0
Fix Version/s: 1.3.0

Time Tracking:
Not Specified


 Description  « Hide
We have discussed this at the fornax-developer list: http://www.nabble.com/-Cartridges%3A-JavaBasic--Should-methods-definded-in-an-Interface-be-abstract-in-the-AbstractClass--tf3768454s17564.html#a10689228

As a result of this I see that the beste solution is to provide both:

1. Create an abstract method declaration in the abstract implementation class
2. Ommit this; only create a method in the base class

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
Fornax SVN #1580 Fri May 18 22:58:22 CEST 2007 thorque CJB-14: Containing the accessors for the globalvars
Files Changed
ADD /trunk/cartridges/uml2/JavaBasic/fornax-cartridges-uml2-javabasic-generator/src/main/resources/org/fornax/cartridges/uml2/javabasic/extensions/Properties.ext

Repository Revision Date User Message
Fornax SVN #1581 Fri May 18 22:59:14 CEST 2007 thorque CJB-14: Needed changes to resolve this issue. See
http://www.fornax-platform.org/tracker/browse/CJB-14 for further informations
Files Changed
MODIFY /trunk/cartridges/uml2/JavaBasic/fornax-cartridges-uml2-javabasic-generator/src/main/resources/org/fornax/cartridges/uml2/javabasic/templates/Entity.xpt
MODIFY /trunk/cartridges/uml2/JavaBasic/fornax-cartridges-uml2-javabasic-generator/src/main/resources/org/fornax/cartridges/uml2/javabasic/templates/Operation.xpt

Repository Revision Date User Message
Fornax SVN #1584 Fri May 18 23:04:54 CEST 2007 thorque CJB-14: Adding globalvar interface_operation_implementation_strategy
Files Changed
MODIFY /trunk/cartridges/uml2/JavaBasic/fornax-cartridges-uml2-javabasic-reference/src/main/resources/workflow.oaw
MODIFY /trunk/cartridges/uml2/JavaBasic/fornax-cartridges-uml2-javabasic-reference/src/main/resources/workflow.properties

Thorsten Kamann added a comment - 18/May/07 11:08 PM
Both strategies were implemented.

You can set a globalwar to the generator: interface_operation_implementation_strategy
Possible values are:

use_abstract_method - generate a abstract method in the abstract implementation class
none - do not generate an abstract method

The default is none.

Thorsten Kamann made changes - 18/May/07 11:08 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Thorsten Kamann added a comment - 19/May/07 05:41 PM
There are a needed change in the handling:


You can set a globalvar to the generator: interface_operation_implementation_strategy
Possible values are:

use_abstract_method - generate a abstract method in the abstract implementation class
ommit_abstract_method - The abstract method would *not* be generated
none - generate the methods but not mark them as abstract. This is useful if you want generate a special operation body (eg. at Finder-Methods, where you can generate the full method)

The default is none.

Repository Revision Date User Message
Fornax SVN #1587 Sat May 19 17:43:04 CEST 2007 thorque CJB-14: Changed handling of the implementation strategy.
See http://www.fornax-platform.org/tracker/browse/CJB-14
Files Changed
MODIFY /trunk/cartridges/uml2/JavaBasic/fornax-cartridges-uml2-javabasic-generator/src/main/resources/org/fornax/cartridges/uml2/javabasic/templates/Entity.xpt