List of usage examples for org.springframework.integration.selector PayloadTypeSelector PayloadTypeSelector
public PayloadTypeSelector(Class<?>... types)
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; }