Geert,

That's actually not entirely correct. RIFE supports injection of any kind of object and will try its best to convert between types.


Can you give me an exemple with an object other than a String. I didn't find very usefull the exemple in "Ioc Support" wiki article as it uses directly supported tag "datasource". And I don't know where to find other exemples.


You can retrieve any object from any participant, using the XML declaration. This is explained here:
http://rifers.org/wiki/display/RIFE/IoC+support#IoCsupport-1

Besides that, a site structure can be declared in Java, Groovy or Janino (not just XML). So people can easily inject any object using the SiteBuilder method calls, like this:
addProperty("prop1", new PropertyValueObject(myobject))

OK.

So besides the participant, atm there is no way to inject object (other than string or with directly supported tags) from participants or site XML files. You need some Java, Groovy or Janino code like above. Am'I right?

Pierre




_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to