[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Supporting qualifiers in MC

kabir.khan@jboss.com do-not-reply at jboss.com
Fri Dec 11 12:31:45 EST 2009


Note to self :-)

This pushes (un)install method annotations to the MDR
https://jira.jboss.org/jira/browse/JBKERNEL-68

"kabir.khan at jboss.com" wrote : 
  | 1) PreInstallAction describeVisits the BeanMetaData as before
  | 2) Determine the relevant parent nodes in AbstractInjectionValueMetaData during describeVisit().
  | 3) Either
  | a) See if I can get rid of SearchClassContextDependencyItem, since it should just be a special case of a qualifier dependency item with no qualifiers. 
  | b) Create dependency items as before
  | Stash the nodes determined in 1) into the dependency item
  | 4) PreInstallAction populates the MDR as before
  | 5) Extend this step to look at all the dependency items. For the relevant ones (SearchClassContextDependencyItem/qualifier dependency item) check the parent nodes for qualifiers and add to the dependency item.
  | 
  | Is this too much of a hack? At least this way we don't have to go through everything again.

This is now working with 

  | <inject/>
  | 

However, I undid the stuff I did in the InjectAnnotationPlugin, so @Inject + qualifiers is broken. The problem is that 5) happens during PRE_INSTALL and the annotation plugins kick in during DESCRIBE so the annotation plugins need to pick up the qualifiers as before. I'll readd the stuff I did in InjectAnnotationPlugin on Monday.

Also, I need to test field properties and see if something can be done with ValueFactories

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

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



More information about the jboss-dev-forums mailing list