Example usage for org.springframework.integration.selector PayloadTypeSelector PayloadTypeSelector

List of usage examples for org.springframework.integration.selector PayloadTypeSelector PayloadTypeSelector

Introduction

In this page you can find the example usage for org.springframework.integration.selector PayloadTypeSelector PayloadTypeSelector.

Prototype

public PayloadTypeSelector(Class<?>... types) 

Source Link

Document

Create a selector for the provided types.

Usage

From source file:com.nayidisha.slowglow.config.SpringMessagingConfig.java

/**
 * A MessageSelector filters out messages that are not valid on the specific
 * MessageChannel/*www .  j  a v a  2  s. co  m*/
 * 
 * @return
 */
@Bean
public PayloadTypeSelector payloadTypeSelector() {
    // accepts everything - we prolly want to narrow that down when we know which object is coming through
    PayloadTypeSelector selector = new PayloadTypeSelector(Object.class);

    return selector;
}