Commit Graph

20 Commits

Author SHA1 Message Date
Dave Syer
b2873fbc2d Add WebMvcAutoConfigurationTests
[Fixes #53027833]
2013-07-26 11:11:17 +01:00
Dave Syer
2d1f758fd8 Autoconfigure MVC if HandlerMapping already defined 2013-07-25 10:09:11 +01:00
Phillip Webb
e695b4a6ea Use Registrar to register BeanPostProcessors
Use a ImportBeanDefinitionRegistrar to register BeanPostProcessors
rather than using @Bean definitions. Prevents warnings about
beans not having all BeanPostProcessors applied.
2013-07-25 00:18:20 -07:00
Dave Syer
1df48e23a2 Change @Conditional for reactor auto config 2013-07-24 21:58:17 +01:00
Dave Syer
683ddbf525 Add Reactor autoconfiguration
* Make Rector @Autowirable
* Create a ConsumerBeanPostProcessor so users can add
@On and @Reply to bean methods
* Added groovy auto compiler and script sample

[#53955419] [bs-250]
2013-07-24 18:02:50 +01:00
Dave Syer
7dd186aa40 Use enum for parent context modes in @ConditionalOnBean
@ConditionOn*Bean now have search=ALL by default (CURRENT and
PARENTS also supported).

[Fixes #53538357]
2013-07-17 12:25:54 +01:00
Dave Syer
b02be6e6ec Thymeleaf dialects now handled as @Autowired collection
This fixed the immediate problem with Thymeleaf, but leaves open
the question of how we can prevent other race conditions developing.
As long as the container can start handling requests before the Spring
context is refreshed this will be a source of bugs.

[Fixes #53482411] [bs-235] Race condition in Thymeleaf
2013-07-17 12:00:58 +01:00
Dave Syer
f0d5b8bbe3 [bs-153] Don't expose classes as resource
Made classpath:/[static,resourecs,public] available instead. Some
sample apps had to change so probably some gs-* guides etc as well?

[Fixes #51368907]
2013-07-16 15:30:26 +01:00
Dave Syer
4ce6b64dce [bs-175] Generic dispatcher features for SpringApplication
* Move Spring.main into SpringApplication.main
* User can bind command line or application.properties into
SpringApplication
* User can provide sources dynamically with --spring.main.sources
(a CSV list of class names, package names or XML resource locations)
* One side effect was to make DocumentMatchers stateless

[#52830829]
2013-07-16 10:45:36 +01:00
Dave Syer
eba5b74910 Remember to add interceptor to registry 2013-07-15 17:22:10 +01:00
Dave Syer
f52d624be5 Add option in @OnBeanCondition to *only* look in parent
[Fixes #53374039] [bs-231] Broken tests for management port configuration
2013-07-15 11:16:02 +01:00
Dave Syer
789e75d2e5 [bs-170] Out of the box support for thymeleaf security dialect
[Fixes #52121649]
2013-07-15 09:59:14 +01:00
Phillip Webb
14aa163731 Start to breakup README.md documentation 2013-07-14 20:50:44 -07:00
Phillip Webb
7d824a5701 Fix accidentally broken test 2013-07-11 11:29:17 -07:00
Phillip Webb
7d0c0fc0dd Polish 2013-07-11 11:21:34 -07:00
Dave Syer
6dbd6d7c4c [bs-178] Use OpenEntityManagerInView by default in webapp with JPA
If JPA is used and the context is a webapp we add the OEMIV interceptor.
It can be switched off by the user declaring a bean of type OEMSIVI or
the corresponding Filter, or by setting spring.jpa.open_in_view=false.

[Fixes #52939983]
2013-07-11 18:13:49 +01:00
Dave Syer
36cbb39dec [bs-194] Restore udev in maven
Also tidy up some TODOs

[Fixes #53030439]
2013-07-10 17:03:26 +01:00
Dave Syer
d260fa6456 [bs-173] Upgrade Thymeleaf layout dialect
[Fixes #52629385]
2013-07-10 11:10:15 +01:00
Phillip Webb
0b863611d9 Package restructure 2013-07-08 13:42:46 -07:00
Phillip Webb
cd51f357a3 Further maven module restructure 2013-07-08 13:42:44 -07:00