/** * Populate the {@link MessageChannel} object to the * {@link IntegrationFlowBuilder} chain using the fluent API from {@link MessageChannelSpec}. * The {@link org.springframework.integration.dsl.IntegrationFlow} {@code inputChannel}. * @param messageChannelSpec the MessageChannelSpec to populate {@link MessageChannel} instance. * @return new {@link IntegrationFlowBuilder}. * @see org.springframework.integration.dsl.channel.MessageChannels */ public static IntegrationFlowBuilder from(MessageChannelSpec<?, ?> messageChannelSpec) { Assert.notNull(messageChannelSpec, "'messageChannelSpec' must not be null"); return from(messageChannelSpec.get()); }
/** * Populate a {@link MessageChannel} instance * at the current {@link IntegrationFlow} chain position using the {@link MessageChannelSpec} * fluent API. * @param messageChannelSpec the {@link MessageChannelSpec} to use. * @return the current {@link IntegrationFlowDefinition}. * @see org.springframework.integration.dsl.channel.MessageChannels */ public B channel(MessageChannelSpec<?, ?> messageChannelSpec) { Assert.notNull(messageChannelSpec, "'messageChannelSpec' must not be null"); return channel(messageChannelSpec.get()); }
/** * Populate a {@link MessageChannel} instance * at the current {@link IntegrationFlow} chain position using the {@link MessageChannelSpec} * fluent API. * @param messageChannelSpec the {@link MessageChannelSpec} to use. * @return the current {@link IntegrationFlowDefinition}. * @see org.springframework.integration.dsl.channel.MessageChannels */ public B channel(MessageChannelSpec<?, ?> messageChannelSpec) { Assert.notNull(messageChannelSpec, "'messageChannelSpec' must not be null"); return channel(messageChannelSpec.get()); }
/** * Populate the {@link MessageChannel} object to the * {@link IntegrationFlowBuilder} chain using the fluent API from {@link MessageChannelSpec}. * The {@link org.springframework.integration.dsl.IntegrationFlow} {@code inputChannel}. * @param messageChannelSpec the MessageChannelSpec to populate {@link MessageChannel} instance. * @return new {@link IntegrationFlowBuilder}. * @see org.springframework.integration.dsl.channel.MessageChannels */ public static IntegrationFlowBuilder from(MessageChannelSpec<?, ?> messageChannelSpec) { Assert.notNull(messageChannelSpec, "'messageChannelSpec' must not be null"); return from(messageChannelSpec.get()); }