>FROM: Dmitri Colebatch
>DATE: 03/05/2002 23:05:15
...
>the options I see are :
>
>(a) do nothing, and use constants class
>(b) your suggestion of using fields int he ejb, and replicating in
>interfaces
>(c) my suggestion of finder style declarations.
or
(d) have XDoclet generate a constants cla
At 18:05 2002-03-06 +1100, Dmitri Colebatch wrote:
>the options I see are :
>
>(a) do nothing, and use constants class
>(b) your suggestion of using fields int he ejb, and replicating in interfaces
>(c) my suggestion of finder style declarations.
>
>Ara - I'll put one of these in (well, b or c) if
> >what's ugly about it? As I understand it, Ara's criticism is over the
> >placement of constants in an interface. atm, we have
> >finders:
> >
> > @ejb:finder query="java.util.Collection findAll()"
>
> Ah, what I thought ugly was placing something that's pure Java into a
> comment and into
> > >Well, about the "Don't know what to write here;" the answer is you can't
> > >because javdoc's doclet api doesn't have a method to retrieve that.
> > >Hopefully xdoclet's xjavadoc api will let you do that. But for the time
> > >being, you can follow Dmitri's proposal (@ejb:interface-constant
> > > public = Don't know
> >what
> > > to
> > > write here;
> >
> >Well, about the "Don't know what to write here;" the answer is you can't
> >because javdoc's doclet api doesn't have a method to retrieve that.
> >Hopefully xdoclet's xjavadoc api will let you do that. But for the time
> >be
At 12:13 2002-03-05 +0430, Ara Abrahamian wrote:
> > public = Don't know
>what
> > to
> > write here;
>
>Well, about the "Don't know what to write here;" the answer is you can't
>because javdoc's doclet api doesn't have a method to retrieve that.
>Hopefully xdoclet's xjavadoc api will let yo
> Also, could something like this go into the default template? I'm
willing
> to create a patch when I get it to work.
>
> My template:
>
>
>
> public = Don't know
what
> to
> write here;
>
>
>
Well, about the "Don't know what to write here;" the answer is you can't
because
A@ejb:interface extends="org.yourname.YourInterfaceWithConstants" should
>work if you place the contants in "org.yourname.YourInterfaceWithConstants".
I thought of this, and it could be a way, but I would prefer to keep
everything in the bean in one single file. It's after all a very small been
At 20:40 2002-03-04 +0430, Ara Abrahamian wrote:
>In that file you can either hard-code the values you're talking about or
>write your own template which loops over all public static constants
>marked with @ejb:interface-field (you invent this tag) and adds them to
>remote interface. Use template
l Bratell
> Sent: Monday, March 04, 2002 7:39 PM
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] How to get constants in the generated
interface
>
> I was writing an entity bean the other day, actually more like half an
> hour
> ago, and it has a type field which can have
On Mon, Mar 04, 2002 at 04:09:23PM +0100, Daniel Bratell wrote:
> I've written the constants the constants in the implementation java file
> but how do I get them into the interfaces?
>
> @ejb:interface-method didn't work.
@ejb:interface extends="org.yourname.YourInterfaceWithConstants" should
I was writing an entity bean the other day, actually more like half an hour
ago, and it has a type field which can have some very specific values.
Normally I would enter some constants in the interface (public final static
int TYPE_BAD = 4) but now that part is generated.
I've written the cons
12 matches
Mail list logo