atteo / classindex

Index classes, do not scan them!
Apache License 2.0
263 stars 43 forks source link

FieldIndex? #35

Open spoerri opened 8 years ago

spoerri commented 8 years ago

How about supporting indexing of annotations on fields (e.g. FieldElement as well as TypeElement)? Would you accept a pull request?

i.e.

@IndexAnnotated public @interface MyAnnotation {}

class MyClass {
    @MyAnnotation String myField;
}

Iterable<Field> fields = ClassIndex.getAnnotatedFields(MyAnnotation.class);
sentinelt commented 8 years ago

Sure, I will accept pull request. One comment though, I would not use @IndexAnnotated in this case to not break backward compatibility. How about @IndexAnnotatedMember?

raglandba commented 7 years ago

Any updates on this feature?

I was just about to fork the project for this reason and don't want to write my own if this is currently in progress?

sentinelt commented 7 years ago

I am not in the process of implementing any new features in this project right now. Currently I spend all my free time on jfactory