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
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 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.