Great work Steven!

I will definitely include this in RIFE since as you say, many people will want to work like this. Do you think it's feasible to create some unit tests that check if this integration was done correctly (I know that this is currently not the case for the SpringWebParticipant)? I think that a good location would be src/ unittests/com/uwyn/rife/rep/ and maybe you can setup the required participant and context in programs/unittests/config/rep/ unittests_participants.xml and src/unittests/com/uwyn/rife/ TestRife.java. I haven't really thought this through though. I suppose you need to be careful to not interfere with existing repository tests and their properties. Maybe it's actually better to use your own mock repository for the test, as explained here: http:// rifers.org/wiki/display/RIFE/Repository+mocking+and+testing

Take care,

Geert

On 20 Jul 2006, at 11:00, Steven Grimm wrote:

Geert Bevin wrote:
What would be swell would be a Spring participant that automatically adds all the Spring beans to the list of global RIFE properties. That way you wouldn't have to list the beans in two places.
As long as Spring supports full introspection of the beans in the factory, that simply would be an extension of SpringWebParticipant. You can override the initialize() method. It's implementation would call parent.initialize() first and then you can use getRepository().getProperties() to obtain a handle on the global properties. These can then be filled in.

This works great and I've posted code for it to the Wiki. Do you think it makes sense to include this as a part of RIFE? It seems to me that many (most?) people who want to mix Spring and RIFE will want to be able to freely inject all their Spring beans into RIFE elements.

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


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


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

Reply via email to