[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Bean instantiate order with contextual injection
alesj
do-not-reply at jboss.com
Tue Aug 15 05:45:21 EDT 2006
"adrian at jboss.org" wrote : I don't understand?
|
| It should fail if the inject cannot find a target.
|
| When it works, it should look like this:
| (C1) Context1: Your bean above
| (C2) Context2: Implements the class
|
| C1: preprocess/Describe - we need somebody to implement the parameter class
| C2: .../Instantiate/etc. - I implement it
| C1: Can now proceed to instantiation using C2 as the iDependOn
|
| If there is no C2, then it is an error.
Ok, this is written for property case - and is already commited.
In property case I can later (still in describe state) get the actual property class type.
How to get to class in different parameter injection cases:
| <bean name="parameterObject1" class="org.jboss.test.kernel.inject.support.ParameterTestObject">
| <constructor>
| <parameter><array><inject/></array></parameter>
| </constructor>
| </bean>
|
Crawl back all to the constructorMD / parameterMD for some info which will help me in 'placeholder' dependency item?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965208#3965208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965208
More information about the jboss-dev-forums
mailing list