Update `ApplicationContextRequestMatcher` and
`ApplicationContextServerWebExchangeMatcher` to use a supplier for
the context, rather than the context itself.
This allow exceptions to be propagated to subclasses which may choose
to deal with them.
See gh-12238
@ -43,7 +43,7 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
@@ -43,7 +43,7 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
privatefinalClass<?extendsC>contextClass;
privatevolatileCcontext;
privatevolatileSupplier<C>context;
privatefinalObjectcontextLock=newObject();
@ -60,12 +60,13 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
@@ -60,12 +60,13 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
@ -79,26 +80,19 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
@@ -79,26 +80,19 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
@ -43,7 +43,7 @@ public abstract class ApplicationContextRequestMatcher<C> implements RequestMatc
@@ -43,7 +43,7 @@ public abstract class ApplicationContextRequestMatcher<C> implements RequestMatc
privatefinalClass<?extendsC>contextClass;
privatevolatileCcontext;
privatevolatileSupplier<C>context;
privatefinalObjectcontextLock=newObject();
@ -60,12 +60,12 @@ public abstract class ApplicationContextRequestMatcher<C> implements RequestMatc
@@ -60,12 +60,12 @@ public abstract class ApplicationContextRequestMatcher<C> implements RequestMatc
@ -79,26 +79,19 @@ public abstract class ApplicationContextRequestMatcher<C> implements RequestMatc
@@ -79,26 +79,19 @@ public abstract class ApplicationContextRequestMatcher<C> implements RequestMatc
@ -58,8 +61,8 @@ public class ApplicationContextServerWebExchangeMatcherTests {
@@ -58,8 +61,8 @@ public class ApplicationContextServerWebExchangeMatcherTests {
@ -70,19 +73,17 @@ public class ApplicationContextServerWebExchangeMatcherTests {
@@ -70,19 +73,17 @@ public class ApplicationContextServerWebExchangeMatcherTests {
@ -139,24 +140,25 @@ public class ApplicationContextServerWebExchangeMatcherTests {
@@ -139,24 +140,25 @@ public class ApplicationContextServerWebExchangeMatcherTests {