diff --git a/spring-integration-reference/src/configuration.xml b/spring-integration-reference/src/configuration.xml index 7f829076ed..c4aca4e4b5 100644 --- a/spring-integration-reference/src/configuration.xml +++ b/spring-integration-reference/src/configuration.xml @@ -445,7 +445,15 @@ public class FooService { public class FooService { @Handler - pub lic void bar(@HeaderAttribute("fooAttrib") Foo foo) { + public void bar(@HeaderAttribute("fooAttrib") Foo foo) { + ... + } +} + @MessageEndpoint(input="fooChannel") +public class FooService { + + @Handler + public void bar(@HeaderProperty("foo") String input) { ... } } @@ -524,7 +532,7 @@ List<LineItem> extractItems(Order order) { } - The @Publisher annotation is a convenience for sending messages with AOP + The @Publisher annotation is convenient for sending messages with AOP after-returning advice. For example, each time the following method is invoked, its return value will be sent to the "fooChannel":