Closed bclozel closed 12 years ago
I had quite a lot of discussion with developers before going to vacations. I think moving applicationContext.xml to archetypes would be great in order to continue the goal to make RESThub 2 a thin stack, and to not hide configuration to the developers.
I have improved the Spring Context handling in RESThub in order to make it more flexible.
Application Context are not moved directly in the archetypes since it won't be easy to manage updates, but instead I have implemented the following changes :
This way of handling contexts give more control about what is included or not, and explicit reference on context will help users to watch RESThub default configuration in order to include a modified version in their project if needed.
I have not moved resthubContext.xml
I've been chatting with RESThub users and developers. I'm wondering if some contexts/properties should be moved to projects archetypes.
Use case: One team wants to integrate Hibernate Search in their project. They had to override the datasource bean definition to add properties related to search.
Should we:
Moving those is a good thing on the "promote best practices front", but could be a problem for future RESThub migrations...
Discuss!