How does the core project get these injection working?
Posted: Thu Jul 17, 2014 6:31 am
Hi guys,
I am a newbee on spring; tried very hard to look for the entry point for the payment processor or configureService (in "core" project), just don't really get how does it work.
Take this piece in applicationContext.xml as an example:
<bean class="org.broadleafcommerce.common.extensibility.context.merge.LateStageMergeBeanPostProcessor">
<property name="collectionRef" value="mySamplePaymentProcessors"/>
<property name="targetRef" value="blDialectProcessors"/>
</bean>
this magic class "LateStageMergeBeanPostProcessor" seems pointing the payment processor to blDialectProcessors, but I couldn't find where was blDialectProcessors used; the only assumption is blDialect which is used in thymeleaf SpringTemplateEngine. Then how does it call the processors?
Another question:
<bean class="com.icearn.sample.vendor.nullPaymentGateway.service.payment.NullPaymentGatewayType"/>
what's the purpose of this bean? Do we need to explicitely inject it here?
Thank you for your time to read this; If you would like to answer either of the questions, do appreciate your answer.
Cheers,
Dan
I am a newbee on spring; tried very hard to look for the entry point for the payment processor or configureService (in "core" project), just don't really get how does it work.
Take this piece in applicationContext.xml as an example:
<bean class="org.broadleafcommerce.common.extensibility.context.merge.LateStageMergeBeanPostProcessor">
<property name="collectionRef" value="mySamplePaymentProcessors"/>
<property name="targetRef" value="blDialectProcessors"/>
</bean>
this magic class "LateStageMergeBeanPostProcessor" seems pointing the payment processor to blDialectProcessors, but I couldn't find where was blDialectProcessors used; the only assumption is blDialect which is used in thymeleaf SpringTemplateEngine. Then how does it call the processors?
Another question:
<bean class="com.icearn.sample.vendor.nullPaymentGateway.service.payment.NullPaymentGatewayType"/>
what's the purpose of this bean? Do we need to explicitely inject it here?
Thank you for your time to read this; If you would like to answer either of the questions, do appreciate your answer.
Cheers,
Dan