Hi,
I am trying to figure out if/how I can autowire a bean that has been aliased.
For example:
Is there anyway I can autowire the "configuration" bean? Does the alias help at all for the autowiring, or it serves no purpose?Code:<bean id="fwl.config.StandardSystemConfiguration" class="org.apache.commons.configuration.CompositeConfiguration" autowire-candidate="true" scope="singleton"> <constructor-arg> <list> <ref bean="fwl.config.SystemPropertiesConfiguration"/> <ref bean="fwl.config.DefaultsConfiguration"/> <ref bean="fwl.config.SystemContextConfiguration"/> </list> </constructor-arg> </bean> <!-- standard configuration alias since this object is bound to be used quite often --> <alias alias="configuration" name="fwl.config.StandardSystemConfiguration" />
Thanks,
Eric


Reply With Quote
