[seam-dev] First cab off the rank!

Gavin King gavin.king at gmail.com
Sun Nov 29 20:12:54 EST 2009


Yeah, I think that's better...

On Sun, Nov 29, 2009 at 8:09 PM, Stuart Douglas
<stuart at baileyroberts.com.au> wrote:
> That makes sense. I don't know what I was thinking as you couldn't have a JDK proxy extend AnnotationLiteral anyway.  I will look at redoing mine using JDK proxies to remove the javassist dependency.
>
> Stuart
>
> ________________________________________
> From: Gavin King [gavin.king at gmail.com]
> Sent: Monday, 30 November 2009 11:58 AM
> To: Stuart Douglas
> Cc: seam-dev at lists.jboss.org
> Subject: Re: [seam-dev] First cab off the rank!
>
> By "all the interfaces", I mean both interfaces.
>
> On Sun, Nov 29, 2009 at 7:58 PM, Gavin King <gavin.king at gmail.com> wrote:
>> Right but Annotation and every annotation type are all interfaces. You
>> would not be able to extend AnnotationLiteral, but you don't really
>> need that. All you need is to be able to implement all the interfaces.
>>
>> On Sun, Nov 29, 2009 at 7:54 PM, Stuart Douglas
>> <stuart at baileyroberts.com.au> wrote:
>>> I don't think that this would be possible as the jdk proxy only allows you to implement SomeInterface, not SomeInterface<Foo> (i.e. there is no mechanism for generating a signature attribute in the proxy). When weld tries to get this information a GenericSignatureFormatError would result (I saw this in my code before I added the SignitureAttribute ). I may be wrong on this, but I can't see any way around it.
>>>
>>> Stuart
>>> ________________________________________
>>> From: seam-dev-bounces at lists.jboss.org [seam-dev-bounces at lists.jboss.org] On Behalf Of Gavin King [gavin.king at gmail.com]
>>> Sent: Monday, 30 November 2009 5:32 AM
>>> To: Shane Bryzak
>>> Cc: seam-dev at lists.jboss.org
>>> Subject: Re: [seam-dev] First cab off the rank!
>>>
>>> You used a jdk dynamicproxy? Probably a better idea.
>>>
>>> Sent from my iPhone
>>>
>>> On Nov 29, 2009, at 1:01 PM, Shane Bryzak <sbryzak at redhat.com> wrote:
>>>
>>>> Done, although I didn't need to use Javassist. ;)
>>>>
>>>> On 30/11/09 02:38, Gavin King wrote:
>>>>> Stuart has some code to do this using javassist.
>>>>>
>>>>> On Sun, Nov 29, 2009 at 2:00 AM, Shane Bryzak<sbryzak at redhat.com>
>>>>> wrote:
>>>>>
>>>>>
>>>>>> Almost got this working, however I need to be able to reflectively
>>>>>> create an
>>>>>> AnnotationLiteral, given a String containing the fully qualified
>>>>>> name of the
>>>>>> qualifier.  Anyone done this before?
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>> _______________________________________________
>>> seam-dev mailing list
>>> seam-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/seam-dev
>>>
>>
>>
>>
>> --
>> 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
>



-- 
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