- 24 Feb, 2017 10 commits
-
-
Brian Clozel authored
This commit adds a sample application for the annotation variant of Spring WebFlux.
-
Stephane Nicoll authored
This commit makes sure that `@SpringBootTest` with a reactive setup starts a web application if necessary. If both a servlet and a reactive environment are available, a servlet environment is bootstraped. This commit also adds a way to force a reactive environment by specifying the `spring.main.web-application-type` property of the test (e.g. `@TestPropertySource`). Closes gh-8383
-
Brian Clozel authored
This commit creates auto-configuration classes for both the annotation and functional variants of the WebFlux framework. They provide the basic support to get started with those, by creating the required `HttpHandler` using the provided application context (for annotation) or `RouterFunction`s (for functional). They do support `WebFilter` registration and a few advanced features such as resource handling, `messageReaders|Writers` and `ViewResolver` auto-registration. Closes gh-8386
-
Brian Clozel authored
This commit adds the auto-configuration for creating reactive `EmbeddedWebServer` instances. This adds support for the following servers: Reactor Netty, Tomcat, Jetty and Undertow. Fixes gh-8302 Fixes gh-8117
-
Brian Clozel authored
This commit refactors the `EmbeddedWebServerInitializedEvent` hierarchy to have one specialized event for Servlet based apps and another one for reactive apps. Each event implementation has: * a specific `ApplicationContext` implementation for the app * a custom `getServerId` implementation that differentiates the application server from the management server Closes gh-8348
-
Brian Clozel authored
This commit adds an `EmbeddedWebServer` instance to the `ReactiveWebApplicationContext` and ties it to the application lifecycle. To launch a reactive web application, two elements are required from the context: * a `ReactiveWebServerFactory` to create a server instance * a `HttpHandler` instance to handle HTTP requests Closes gh-8337
-
Brian Clozel authored
-
Brian Clozel authored
This commit adds the infrastructure for creating and customizing reactive embedded web servers. Common configuration has been refactored into the new `ConfigurableEmbeddedWebServer` interface. See gh-8302
-
Stephane Nicoll authored
-
Stephane Nicoll authored
This commit makes sure that the Spring `Validator` used by the MVC layer doesn't expose a JSR-303 contract, if any. The default implementation of the `mvcValidator` is `LocalValidatorFactoryBean`. While this object is exposed as a Spring `Validator` only, its runtime capabilities expose that contract as well as the standard `Validator` and `ValidatorFactory` ones. Concretely, if an auto-configuration is checking if a `javax.validation.Validator` bean is missing, the condition will match since we only know about "advertized types": beans haven't been created yet so we can't inspect their runtime capabilities. Since the condition match, we will auto-configure a bean. At runtime though, we're no longer ale to inject a `javax.validation.Validator` by type since two candidates are available. This commit introduces `SpringValidatorAdapterWrapper`, a wrapper class on any `SpringValidatorAdapter` (`LocalValidatorFactoryBean` being one of the available implementations) that only exposes the Spring contract. Also, if a `javax.validation.Validator` bean is available, we will use it for the MVC layer, rather than creating a new one. Closes gh-8223
-
- 22 Feb, 2017 30 commits
-
-
Andy Wilkinson authored
See gh-8382
-
Andy Wilkinson authored
See gh-8379
-
Andy Wilkinson authored
Closes gh-7896
-
Andy Wilkinson authored
Closes gh-7232
-
Andy Wilkinson authored
It used to be pulled in transitively by selenium-api but that's no longer that case. See gh-8381
-
Andy Wilkinson authored
Closes gh-8382
-
Andy Wilkinson authored
Closes gh-8381
-
Andy Wilkinson authored
Closes gh-8380
-
Andy Wilkinson authored
Closes gh-8379
-
Andy Wilkinson authored
Closes gh-8378
-
Andy Wilkinson authored
Closes gh-8377
-
Andy Wilkinson authored
Closes gh-8376
-
Andy Wilkinson authored
Closes gh-8375
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-8374
-
Andy Wilkinson authored
Closes gh-8373
-
Andy Wilkinson authored
Closes gh-8372
-
Andy Wilkinson authored
Closes gh-8371
-
Andy Wilkinson authored
Closes gh-8370
-
Andy Wilkinson authored
Closes gh-8369
-
Andy Wilkinson authored
Closes gh-8368
-
Andy Wilkinson authored
-
Andy Wilkinson authored
- Apply standard code formatting - Add class javadoc to MultipleResourceServerConfigurationTests - Add missing @Override annotations - Remove unused ExpectedException field - Remove use of SpringApplicationBuilder from the tests - Use @ImportAutoConfiguration to import auto-configuration - Add assertions to verify that the orders haven't been changed - Remove unnecessary mocking of EmbeddedServletContainerFactory See gh-8347
-
Andy Wilkinson authored
-
Andy Wilkinson authored
-
Andy Wilkinson authored
In Logback 1.1.10, the logback-classic module contains a META-INF/services/javax.servlet.ServletContainerInitializer file that contains a comment. This triggers a bug in Wildfly 8 [1] that has been fixed [2] in Wildfly 9 and later. As a result, this commit also updates our Wildfly deployment test to use 9.0.2 rather than 8.2.0. Closes gh-8354 [1] https://issues.jboss.org/browse/WFLY-4089 [2] https://github.com/wildfly/wildfly/commit/fef57ebdc7f93fe975d9234dd86265b79d705ce2
-
Dave Syer authored
-
Dave Syer authored
Fixes gh-8347
-
Andy Wilkinson authored
-
Andy Wilkinson authored
-