I am thinking this may not be possible in Java because annotation and its parameters are resolved at compile time. I have an interface as follows,
public int
Does someone know how I can use a String constant or String[] constant to supply value to an annotation?
Unfortunately, you can't do this with arrays. With non-array variables, the value must be final static.