public class PayloadTypeSelector extends java.lang.Object implements MessageSelector
MessageSelector implementation that checks the type of the
Message payload. The payload type must be assignable to at least one
of the selector's accepted types.| Constructor and Description |
|---|
PayloadTypeSelector(java.lang.Class<?>... types)
Create a selector for the provided types.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.springframework.messaging.Message<?> message) |
public PayloadTypeSelector(java.lang.Class<?>... types)
types - The types.public boolean accept(org.springframework.messaging.Message<?> message)
accept in interface GenericSelector<org.springframework.messaging.Message<?>>accept in interface MessageSelector