Add FunctionInspector to deployer so types can be inspected

ALso added a bunch of DEBUG logging because it's hard to debug the
deployer app.

Fixed gh-53
This commit is contained in:
Dave Syer
2017-05-22 10:57:47 +02:00
parent 3606e51d78
commit 6e1f0b9a6e
6 changed files with 87 additions and 11 deletions

View File

@@ -29,17 +29,17 @@ public class SampleApplication {
@Bean
public Function<Flux<Foo>, Flux<Bar>> uppercase() {
return flux -> flux.map(value -> new Bar(value.uppercase()));
return flux -> flux.log().map(value -> new Bar(value.uppercase()));
}
@Bean
public Supplier<Flux<Bar>> words() {
return () -> Flux.fromArray(new Bar[] { new Bar("foo"), new Bar("bar") });
return () -> Flux.fromArray(new Bar[] { new Bar("foo"), new Bar("bar") }).log();
}
@Bean
public Function<Flux<Foo>, Flux<Bar>> lowercase() {
return flux -> flux.map(value -> new Bar(value.lowercase()));
return flux -> flux.log().map(value -> new Bar(value.lowercase()));
}
public static void main(String[] args) throws Exception {