Not a real howto, but this explains it a bit:
http://rifers.org/wiki/display/RIFE/IoC+support
http://rifers.org/wiki/display/RIFE/IoC+properties+support+inside
+the +repository
In this 2d link, the exemple is about a datasource instance created
through a property "datasource" using participant
"ParticipantDatasources".
If I understood, to be able to define a LocaleProvider as a
property, with need some participant "ParticipantLocaleProviders".
Is it right?
No, it could be provided by any participant, and if you add the
ParticipantSpringWeb participant, it can come from a Spring IoC setup.
However, I'd like to add some basic reference factory behavior to
RIFE's IoC, we started design that here:
http://rifers.org/wiki/display/RIFE/Add+full+IoC+support
You could then do this inside the rep declaration, site structure or
element declaration:
<ref
id="mylocaleprovider"><bean>com.uwyn.rife.tools.DefaultLocaleProvider</b
ean></ref>
<property name="localeProvider"><ref> mylocaleprovider</ref></property>
--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users