UdhayaBalaji / androidannotations

Automatically exported from code.google.com/p/androidannotations
0 stars 0 forks source link

Simplify AnnotationProcessor annotation list #129

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The AndroidAnnotationProcessor has a huge list of supported annotations. We 
should try to replace that with a package scan based mechanism.

Original issue reported on code.google.com by py.ricau on 14 Nov 2011 at 8:12

GoogleCodeExporter commented 8 years ago

Original comment by py.ricau on 21 Nov 2011 at 1:35

GoogleCodeExporter commented 8 years ago
I tried to implement that in different ways in branch 129_PackageScan, but it 
didn't work.

Here is the commit :

http://code.google.com/p/androidannotations/source/detail?r=4cc59431821432c0d9a8
e320654b0ffd5381a38d&name=129_PackageScan

Basically, the problem is that there is no easy way to scan a package for 
classes. It seems that the classloader I retrieved didn't see the annotations 
that are in the jar of AndroidAnnotations. This may be an eclipse related 
problem, or may not.

I'm not a classloader expert, so if anyone can find a way to do it, and have it 
work in any compiler, that would be great.

Original comment by py.ricau on 22 Nov 2011 at 2:13