Example usage for org.springframework.integration.router MethodInvokingRouter MethodInvokingRouter

List of usage examples for org.springframework.integration.router MethodInvokingRouter MethodInvokingRouter

Introduction

In this page you can find the example usage for org.springframework.integration.router MethodInvokingRouter MethodInvokingRouter.

Prototype

public MethodInvokingRouter(Object object, String methodName) 

Source Link

Usage

From source file:org.springframework.integration.config.RouterFactoryBean.java

private AbstractMappingMessageRouter createMethodInvokingRouter(Object targetObject, String targetMethodName) {
    MethodInvokingRouter router = (StringUtils.hasText(targetMethodName))
            ? new MethodInvokingRouter(targetObject, targetMethodName)
            : new MethodInvokingRouter(targetObject);
    return router;
}