Now if only we could pass in complex and/or nested properties...
mach-ii.xml:
<property name="generalInfo">
<struct>
<key name="siteName" value=" Foo" />
...
</struct>
</property>
coldsrpring services.xml:
<bean id="addressDao"
class="model.address.address.addressDao_mysql">
<constructor-arg name="SiteName"><value>$
{generalInfo.siteName}</value></constructor-arg>
or even:
<constructor-arg name="generalInfo"><value>${generalInfo}</
value></constructor-arg>
</bean>
I got excited and thought maybe that's where things were going with
ExpressionEvaluator.cfc in the latest BER. ;)
On Aug 28, 12:42 pm, "Peter J. Farrell" <
pe...@mach-ii.com> wrote:
> Even better donate your post to the Mach-II wiki as well as this tends
> me a common question on the list! Let me know if you're interested and
> need help getting it on the wiki.
>
> And Brian, if you are using the ColdspringProperty -- all M2 properties
> are passed into the CS bean factory. Just reference them with the
> placeholder syntax:
>
> <bean id="addressDao"
> class="model.address.address.addressDao_mysql">
> <constructor-arg
> name="dbDsn"><value>${dbDsn}</value></constructor-arg>
> </bean>
>
> Best,
> .Peter
>
> Leaf, Andrew said the following on 8/28/2008 1:22 PM:
>
>
>
> > I am working on a post and will be putting it on instant spot soon.
>
> > Andrew
>
> > *Subject:* [Mach-II] Re: passing mach-ii properties into coldspring
>
> > I think Andrew Leaf has all of this figured out. He was showing us
> > some code at the last DFW CFUG.
>
> > Now if he would only POST IT TO THE LIST! :P
>
> > -- Adrian
>
> > **Subject**: [Mach-II] passing mach-ii properties into coldspring