Elliott
07/19/2018, 1:37 AMfield:
prefix when annotating a field? I understand the purpose of the prefix in terms of positioning the annotation correctly in the generated bytecode, but I was hoping there might be another way that didn't litter up the syntax, since the value of the annotated fields is defined via a DSL and I'd like to keep things as tidy as possible.
@field:Convo
val someConvo = ...
val fields = Reflections("my.package",
FieldAnnotationsScanner()).getFieldsAnnotatedWith(Convo::class.java)
I'd love to hear your input / suggestions. Maybe there's a better way I could go about this?