[seam-dev] Next steps

Stuart Douglas stuart at baileyroberts.com.au
Sun Nov 22 01:27:49 EST 2009


The original spec called for the ability to set default field values, however the AnnotatedType interface does not support this directly. Does anyone have any idea's about how to implement this without having to subclass Bean?

Stuart



________________________________________
From: Gavin King [gavin.king at gmail.com]
Sent: Sunday, 22 November 2009 12:27 PM
To: Stuart Douglas
Cc: seam-dev at lists.jboss.org
Subject: Re: [seam-dev] Next steps

Great, this is very useful.

At one stage, Pete and I talked about implementing the whole XML
facility this way: it would just generate subclasses of the bean
classes, with the annotations added in. But I don't think this
approach works for:

* final classes and methods
* fields

So I think we're going to need my AnnotationTypeWrapper classes. I'll
try to find time to work on them tomorrow, but I might have to wait
til Monday.

On Sat, Nov 21, 2009 at 7:45 PM, Stuart Douglas
<stuart at baileyroberts.com.au> wrote:
> I just posted the code in the forum in anyone is interested. IT has only been lightly tested inside weld-se, so there may still be bugs.
>
> Stuart
> ________________________________________
> From: Gavin King [gavin.king at gmail.com]
> Sent: Sunday, 22 November 2009 11:39 AM
> To: Stuart Douglas
> Cc: seam-dev at lists.jboss.org
> Subject: Re: [seam-dev] Next steps
>
> On Sat, Nov 21, 2009 at 7:36 PM, Stuart Douglas
> <stuart at baileyroberts.com.au> wrote:
>
>> I have been playing around with the first bit this weekend, and I have created a helper class
>> that can generate AnnotationLiteral<T> at runtime (using javassist), which will be necessary
>> for qualifiers that are specified via xml. I will try and get on IRC a bit in the next few days, to
>> talk about this more.
>
> Ahyes, that's a problem I had not really thought about...
>
>
> --
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
>



--
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org



More information about the seam-dev mailing list