| As I mentioned on HipChat I do wonder if we ought to split these annotations based on target. Maybe I am in the minority amongst Java devs (not sure) but I really dislike these annotations that can be used at multiple levels where at one level an attribute is required and at another its wrong to set it. I.e. here at the package-level user would need to specify the target (class name) to import; but at the class level we all of a sudden infer the name. It opens up all kinds of questions like: Is this valid? And if so, what does it mean?
@Import( fqn = Address.class, rename="MyDTO" )
class MyDTO { ... }
I'd also get away from "target" as the attribute name. "fqn"? "clazz"? "referencedClass"? |