Dynamic class annotation

Posted by jlanza on Stack Overflow See other posts from Stack Overflow or by jlanza
Published on 2010-03-26T11:12:44Z Indexed on 2010/03/26 11:13 UTC
Read the original article Hit count: 119

Filed under:
|
|

Hi,

I want to annotate a class dynamically to make it the more generic as possible:

public class Test<T> {

    @XmlAttribute(name = dynamicvalue)
    T[] data;

    public Test(String dynamicvalue) {
    }  
}

Is there any way to achieve something like this.

TA

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml