target, FallbackFactory extends T> fallbackFacto
* use this feature, pass a safe implementation of your target interface as the last parameter.
*
* Here's an example:
- *
+ *
*
* {@code
*
@@ -139,14 +132,9 @@ public Feign build() {
/** Configures components needed for hystrix integration. */
Feign build(final FallbackFactory> nullableFallbackFactory) {
- super.invocationHandlerFactory(new InvocationHandlerFactory() {
- @Override
- public InvocationHandler create(Target target,
- Map dispatch) {
- return new HystrixInvocationHandler(target, dispatch, setterFactory,
- nullableFallbackFactory);
- }
- });
+ super.invocationHandlerFactory(
+ (target, dispatch) -> new HystrixInvocationHandler(target, dispatch, setterFactory,
+ nullableFallbackFactory));
super.contract(new HystrixDelegatingContract(contract));
return super.build();
}
diff --git a/pom.xml b/pom.xml
index 81c20e278f..c3c9a06efc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,6 +43,7 @@
slf4j
soap
reactive
+ apt-generator
example-github
example-wikipedia
@@ -62,10 +63,6 @@
1.8
java18
-
- 1.8
- 1.8
-
${project.basedir}
3.6.0
@@ -331,6 +328,13 @@
${slf4j.version}