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

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

Introduction

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

Prototype

public void setObject(Object object) 

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;
}