[weld-dev] Is my class a proxy?
Gunnar Morling
gunnar at hibernate.org
Tue Oct 29 11:35:39 EDT 2013
Hi Bill,
You can find the code we're using in HV at
https://github.com/hibernate/hibernate-validator/blob/master/engine/src/main/java/org/hibernate/validator/internal/util/classhierarchy/Filters.java#L75
.
There is no binary dependency, but as Emmanuel said it's not portable.
--Gunnar
> Can you point me to this code Emmanuel? Right now, I'm just doing:
> if (class.getName().contains("WeldClientProxy")) {}
>Not sure how reliable that is. I want something that is not binary
> dependent.
> But, IMO, I just don't see any reason why proxy generator couldn't be
fixed.
On 10/29/2013 9:53 AM, Emmanuel Bernard wrote:
> > We had the same problem in Hibernate Validator and had to make special
>> code to detect Weld proxies. A portable solution would be nice.
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20131029/f77ea530/attachment.html
More information about the weld-dev
mailing list