This content has been marked as final.
Show 5 replies
-
1. Re: BeanFactory and IoC annotations support
adrian.brock Mar 25, 2008 10:36 AM (in response to alesj)Related classes (see the JIRA issue)
http://jira.jboss.com/jira/browse/JBMICROCONT-22.
i.e. When I deploy my factory or some other container,
I also want the dependencies on a given class resolved before the factory is deployed.<bean name="MainClass" class="com.acme.Main"> <related>com.acme.Related</related> </bean>
This was initially raised for AOP where we need to know that com.acme.Main
instantiates a com.acme.Related programmatically and that Related has aspects
whose dependencies need to be satisifed before we deploy/invoke on Main. -
2. Re: BeanFactory and IoC annotations support
adrian.brock Mar 25, 2008 10:39 AM (in response to alesj)For the simple BeanFactory case (i.e. no factory injection in its constructor),
we can add the "bean class" as a related class automatically to the
GenericBeanFactoryMetaData -
3. Re: BeanFactory and IoC annotations support
adrian.brock Mar 25, 2008 10:45 AM (in response to alesj)"adrian@jboss.org" wrote:
This was initially raised for AOP where we need to know that com.acme.Main
instantiates a com.acme.Related programmatically and that Related has aspects
whose dependencies need to be satisifed before we deploy/invoke on Main.
So its not just annotation defined depdencies, we also need to ask
aop to give its dependencies for that class. -
4. Re: BeanFactory and IoC annotations support
alesj Mar 25, 2008 10:49 AM (in response to alesj)"adrian@jboss.org" wrote:
For the simple BeanFactory case (i.e. no factory injection in its constructor),
we can add the "bean class" as a related class automatically to the
GenericBeanFactoryMetaData
OK, this needs to be done. :-)
Since if Scott wants to use our beanfactory as a way to create/pool beans, this is a must to have.
e.g. applying @EJB on enterprise beans
I can have a hack at that, unless Kabir wants to resolve this task personally. ;-)
But I would need some instructions, since it's out of the scope of my simple IoC annotations handling. -
5. Re: BeanFactory and IoC annotations support
alesj Apr 7, 2008 10:08 AM (in response to alesj)"adrian@jboss.org" wrote:
i.e. When I deploy my factory or some other container,
I also want the dependencies on a given class resolved before the factory is deployed.<bean name="MainClass" class="com.acme.Main"> <related>com.acme.Related</related> </bean>
This was initially raised for AOP where we need to know that com.acme.Main
instantiates a com.acme.Related programmatically and that Related has aspects
whose dependencies need to be satisfied before we deploy/invoke on Main.
Should I then add a Set<String> related to BeanMetaData?
How to generically handle this related?
e.g. beanfactory's related bean should be scanned for MC's IoC annotations, but when there is related item for non-beanfactory we shouldn't scan for IoC, it should only be used for AOP dependencies