title: How to start inbound channel adapter via control bus?
body: <p>I am trying to start file inbound channel adapter via control bus, but I am getting exceptions while ExpressionCommandMessageProcessor is trying to parse my command.</p>
  
  <p>Here is my inbound channel adapter configuration:</p>
  
  <pre><code>@Bean(name = "inboundChannelAdapter")
  public IntegrationFlow inputFilesReadingFlow()
  {
           return IntegrationFlows
                    .from(s -&gt; s.file(new File(inputDirectory))
                                .filter(new AcceptAllFileListFilter&lt;File&gt;()),
                          e -&gt; e.poller(Pollers.fixedDelay(FILE_POLLER_RATE))
                                .autoStartup(false)
                         )
                    .handle(messageProcessingService)
                    .channel(fileOutputChannel)
                    .get();
  }
  
  @Bean
  public IntegrationFlow controlBusFlow()
  {
      return IntegrationFlows.from("controlBusChannel").controlBus().get();
  }
  </code></pre>
  
  <p>In my integration test I have autowired control bus bean:</p>
  
  <pre><code>@Autowired
  private MessageChannel controlBusChannel;
  
  @Test
  public void testInboundChannelAdapter() 
  {
      controlBusChannel.send(new GenericMessage&lt;String&gt;("@'inboundChannelAdapter.&lt;property_name_placeholder&gt;'.start()")); // ????
  
      // .....
  }
  </code></pre>
  
  <p>So I'd like to ask how I can access 'adapter' bean(or whatever bean is responsible for the start/stop action) to initiate polling process.</p>
  
  <p>Thank you.</p>