Łukasz,

I’m not too sure how to do this with Blueprint. Do you have a sample config 
file I could look at?

Best regards,
Jean-Philippe

[@@ OPEN @@]

De : Łukasz Dywicki [mailto:[email protected]]
Envoyé : mardi 3 septembre 2013 23:54
À : [email protected]
Objet : Re: Blueprint string substitution / placeholder

Jean,
You may use ext:property-placeholder with default properties reference. This 
default-properties-ref instance could be created by factory method executed on 
some service.

Cheers!
Łukasz Dywicki
--
[email protected]<mailto:[email protected]>
Twitter: ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org

Wiadomość napisana przez CLEMENT Jean-Philippe 
<[email protected]<mailto:[email protected]>>
 w dniu 3 wrz 2013, o godz. 17:07:


Hi,

I would like to replace Blueprint string values, for instance in:
            <bean id=”sample” class=”test.TestClass”>
                        <argument value=”$(to.replace)” />
            </bean>

Where $(to.replace) would be substituted by the correct value taken from a java 
service and not directly from a file.

What would be the simplest way to do so? Is there a way to map a placeholder to 
a bean?

Best regards,
Jean-Philippe

[@@ OPEN @@]

Reply via email to