#47 Interface generation

open
None
5
2002-06-06
2002-06-06
Aslak Hellesřy
No

From Dirk Brenckmann:

This is an update and enhencements based on the
same cvs
versions - so you can throw away the previous patch.

I added support for generating Interfaces.
Example: InterfaceEJB can be found within zip.

Especially the homeinterface should make it possible to
use
ejbFinder Methods with the same signature on very
different
ejbs that implement the same interface.

Please notice: findByPrimaryKey is NOT mandatory(!)
This is due to a possible base-class-character of a
home
interface, which does not implement a concrete bean.
In such cases the findByPrimaryKey leads to confusion,
because its return type is not of the concrete classes
type
(because it will be of the type of the current super-class-
home-interface...)

Current status of the patch:
Generation and compilation works fine. Generated
interfaces
do not yet create additional fields and setter/getter
methods
in final CMP-classes.

In the end - implementing such an interface should lead
to
fields, pk-fields, getter/setter methods just like
extending
from some abstract EJB-super-class.

Might be working by weekend...
Dirk (brenck)

Discussion

  •  
    Attachments