[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Bean instantiate order with contextual injection

alesj do-not-reply at jboss.com
Mon Aug 14 11:38:42 EDT 2006


anonymous wrote : 
  | But what about actual @Inject in class annotation?
  | Where to look/inspect class for them - to add dependency 'demand' items - how to get bean class from AbstractDependencyValueMetaData?
  | 
  | ...
  | 
  | How to add specific code about @Inject annotation into AnnotationMetaData.visit() - through children?
  | 
  | 
  | anonymous wrote : 
  |   | I don't understand either of these questions.
  |   | 
  |   | Why would you be looking up the @Inject from the
  |   | AbstractDependencyValueMetaData (ADVM)?
  |   | It is a property of the class/method.
  |   | 

I have a notion of Loose injection - if no matching bean is found no error is thrown - but this information is held in specific annotation.
Forget about Loose injection?

anonymous wrote : 
  | You would be better off not trying to mix the two features.
  | 

Yep, will seperate the two of them.
Or as you said - handling annotations with BeanMD creation.

anonymous wrote : 
  | 1) Contextual injection - i.e. determining (and properly dependening on)
  | the injected context based on class rather than name.
  | 

How to get property class to add 'demand' dependency item in AbstractInjectionMD - AbstractPropertyMD doesn't hold any class type value - obviously, since no owner bean class inspection is done?

anonymous wrote : 
  | 2) Creating BeanMetaData from annotations rather than xml.
  | 

Adding this in AbstractBeanMetaData.visit() through KernelConfigurer?

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

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



More information about the jboss-dev-forums mailing list