Title: RE: [Xdoclet-user] Tag inheritance from interfaces

No, I'm trying to do something different:

public interface BizIntf {
    /**
     * @ejb:persistent-field
     */
    public void setVal(int val);
}

/**
 * @ejb:bean ...
 *   local-business-interface="BizIntf"
 */
public abstract class BizIntfBean implements BizIntf {
    ...
}

And then XDoclet would generate:
public interface BizIntf_Local extends javax.ejb.EJBLocalObject, BizIntf {
}

Just the standard Business Interface pattern. According to the documentation, XDoclet supports this through the @ejb:bean remote-business-interface and local-business-interface tag parameters. In this case, @ejb:interface-method tags are not required. But I do still need to declare persistent fields, relationships, etc. somewhere. (As a side note, the templates bundled with the distribution are flawed in that they do *not* make the Remote/Local interfaces extend the business interfaces, though they check this before generating the body of the interface. I created a copy of the templates for my own project that fixes this).

Hope this makes it more clear
Eric


-----Original Message-----
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 24, 2002 5:06 PM
To: Eric McIntyre; XDoclet User mailing List (E-mail)
Subject: Re: [Xdoclet-user] Tag inheritance from interfaces


not quite sure I'm 100% understanding, so to confirm, if you declare:

/**
 * Do such and such.
 * @ejb.interface-method
 */
public void doSuchAndSuch()
{
  ;
}

in your bean, then you should have

/**
 * Do such and such.
 */
public void doSuchAndSuch();

generated in the interface.

Is this not happening?  Or have I misinterpreted what it is you're after?

cheers
dim
----- Original Message -----
From: Eric McIntyre
To: XDoclet User mailing List (E-mail)
Sent: Friday, October 25, 2002 9:58 AM
Subject: [Xdoclet-user] Tag inheritance from interfaces


Sorry if these questions have been answered before, but I couldn't find them. I found a similar post on the SourceForge help forum, but no answer.

We would like to be able to use business interfaces for our entity beans, but the current release of XDoclet does not seem to inherit the javadoc comments from them. The workaround so far is to re-declare the business methods in the bean solely to provide XDoclet with information, which is less than optimal.

Did I miss something basic to make this work, or is this a known limitation? Is this kind of inheritance planned for release 1.2?

Eric McIntyre

Reply via email to