Dynamic Reference Been via Properties Struct

1 view
Skip to first unread message

Gersting

unread,
Feb 18, 2010, 11:45:42 AM2/18/10
to ColdSpring-Users
Hey gang,
I have a component that is designed to have a "hot-swappable"
subsystem (a caching plugin that can go between Memcached, EHCache,
etc). Ideally, I'd like to be able to configure this without having
to create multiple ColdSpring XML files. However, when I try to pass
in a property, ColdSpring appears to ignore it and process it as a
literal, ie:


<constructor-arg name="oCacheEngine">
<ref bean="${cacheEngine}" />
</constructor-arg>


Results in the exception:


"There is no bean registered with the factory with the id $
{cacheEngine}"


I'm assuming this is WAI?

Brian Kotek

unread,
Feb 18, 2010, 3:19:18 PM2/18/10
to coldspri...@googlegroups.com
I'm not sure what "WAI" means, but ColdSpring won't let you define variables for bean defs like that, just for things like property values (http://www.coldspringframework.org/coldspring/examples/quickstart/index.cfm?page=dynamicproperties). However, I wrote an extension library that allows for these sort of dynamic values: http://coldspringutils.riaforge.org/

Hope that helps,

Brian


--
You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To post to this group, send email to coldspri...@googlegroups.com.
To unsubscribe from this group, send email to coldspring-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/coldspring-users?hl=en.


Reply all
Reply to author
Forward
0 new messages