org.springframework.integration.selector
Class PayloadTypeSelector
java.lang.Object
org.springframework.integration.selector.PayloadTypeSelector
- All Implemented Interfaces:
- MessageSelector
public class PayloadTypeSelector
- extends Object
- implements 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PayloadTypeSelector
public PayloadTypeSelector(Class<?>... types)
- Create a selector for the provided types. At least one is required.
accept
public boolean accept(Message<?> message)
- Specified by:
accept
in interface MessageSelector
Copyright © 2010. All Rights Reserved.