resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

More flexible Spring context.xml configuration #89

Closed bclozel closed 12 years ago

bclozel commented 12 years ago

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!

sdeleuze commented 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.

sdeleuze commented 12 years ago

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