Class PayloadTypeSelector
java.lang.Object
org.springframework.integration.selector.PayloadTypeSelector
- All Implemented Interfaces:
GenericSelector<Message<?>>
,MessageSelector
A
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.- Author:
- Mark Fisher
-
Constructor Summary
ConstructorDescriptionPayloadTypeSelector
(Class<?>... types) Create a selector for the provided types. -
Method Summary
-
Constructor Details
-
PayloadTypeSelector
Create a selector for the provided types. At least one is required.- Parameters:
types
- The types.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceGenericSelector<Message<?>>
- Specified by:
accept
in interfaceMessageSelector
-