anonymous wrote : But like I said before, this doesn't really optimize it. e.g. at
least in JBoss
| we'll already have a cache of the annotations so there would be no
| need for you to re-read them. e.g. you currently take the stream
| and parse the byte code (we've already done that looking for other annotations)
The idea is that whatever implementation of the EntityScanner contract was registered
would be the one "finding" annotated classes. In your case, as you said, that
work has already been done, so your impl could be quite optimized ;)
anonymous wrote : Iterator
Personally, I like this:
| interface EntityProcessor {
| void processAnnotatedClass(Class clazz);
| ...
| }
| interface EntityScanner {
| void findAnnotatedEntities(EntityProcessor processor);
| }
|
But like I said, I'll leave this up to Emmanuel...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109001#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...