> -----Original Message-----
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 24, 2002 5:58 PM
> To: Eric McIntyre; XDoclet User mailing List (E-mail)
> Subject: Re: [Xdoclet-user] Tag inheritance from interfaces
>
> as a side note - the business interface pattern is really a
> workaround for
> problems caused by the lack of tools in ejb. If you use
> XDoclet fully, then
> the generated interface will always match the bean.
After talking about this a little more, we decided that only the client interfaces (local & remote) will extend the business interfaces, but the bean class will not, because the bean is hidden from view and does not need to be polymorphic. We realized that a) although all entities may have some properties in common, they're persistent field definitions may be different, requiring redeclaration anyway; and b) with CMP 2.0, the compile-time checks that business interfaces buy you are irrelevant.
I'd like to propose reversing the business interface feature of XDoclet to take the methods in your bean marked as interface methods and automatically generate the business interface. It seems that XDoclet has most of the information that it would need.
Eric McIntyre
