Can JAXB generate a generic class?
Can I get a JAXB 2.0 XJC compiler to generate a generic class for me?
Something simple: -
public class Shape<T> {
T myShape;
// getter / setter
}
I see references to this in the spec, but not sure if I am reading it correctly. I always get object references.
+2
dinesh
source
to share
1 answer
I don't think so, no. However, it is fairly easy to write an XJC plugin to have excellent control over what code is generated.
0
skaffman
source
to share