[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Federated resource visitor

alesj do-not-reply at jboss.com
Wed Oct 1 10:09:02 EDT 2008


"adrian at jboss.org" wrote : 
  | I don't understand what you are doing.
  | 
Federated or group resource visitor. ;-)

e.g. I have different / multiple resource visitors and their matching filters / recurse filters
And I would like to run them all on the same module.
I could do it either
 - visit module n times
 - visit module only once, but apply RVs as they match along the visit path

Which do you like more? :-)

"adrian at jboss.org" wrote : 
  | The JIRA issue talks about ResourceLookup and you say
  | 
  |   | hence requiring RV per resource.
  |   | 
  | why wouldn't it just use use Class(Loader).getResource(s)
  | why do you need a complicated visitor for this?
Since I'm already visiting Seam's classpath for annotations,
why shouldn't I build that metadata along the way,
instead of doing additional n lookups for different Seam resources.

And this way I can use regexp or (name-your-waaaay-better-matching-strategy-here-than-CL-findResource) to get the matching resources. ;-)


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179806#4179806

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179806



More information about the jboss-dev-forums mailing list