Announcement Announcement Module
Collapse
No announcement yet.
Return Type of MultiChannelNameResolver Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Return Type of MultiChannelNameResolver

    Hi,

    Why are there different return types for these interfaces?

    Code:
    public interface MultiChannelResolver {
        List<MessageChannel> resolve(Message<?> message);
    }
    
    public interface MultiChannelNameResolver {
        String[] resolve(Message<?> message);
    }
    Could the MultiChannelNameResolver also return a List?

    Code:
    public interface MultiChannelNameResolver {
        List<String> resolve(Message<?> message);
    }
    Regards,
    Thomas
Working...
X