Example usage for org.springframework.integration.endpoint MethodInvokingMessageSource setMethodName

List of usage examples for org.springframework.integration.endpoint MethodInvokingMessageSource setMethodName

Introduction

In this page you can find the example usage for org.springframework.integration.endpoint MethodInvokingMessageSource setMethodName.

Prototype

public void setMethodName(String methodName) 

Source Link

Usage

From source file:com.netflix.spring.sample.membership.Membership.java

@Bean
public MethodInvokingMessageSource integerMessageSource() {
    MethodInvokingMessageSource source = new MethodInvokingMessageSource();
    source.setObject(new AtomicInteger());
    source.setMethodName("getAndIncrement");
    return source;
}