@Override protected FileTailingMessageProducerSupport doGet() { if (this.outputChannel == null) { this.factoryBean.setOutputChannel(new NullChannel()); } FileTailingMessageProducerSupport tailingMessageProducerSupport = null; try { this.factoryBean.afterPropertiesSet(); tailingMessageProducerSupport = this.factoryBean.getObject(); } catch (Exception e) { throw new IllegalStateException(e); } if (this.errorChannel != null) { tailingMessageProducerSupport.setErrorChannel(this.errorChannel); } tailingMessageProducerSupport.setOutputChannel(this.outputChannel); return tailingMessageProducerSupport; }
adapter.setFile(new File(testDir, "foo")); QueueChannel outputChannel = new QueueChannel(); adapter.setOutputChannel(outputChannel); adapter.setTailAttemptsDelay(500); adapter.setBeanFactory(mock(BeanFactory.class));
adapter.setIdleEventInterval(this.idleEventInterval); adapter.setOutputChannel(this.outputChannel); adapter.setErrorChannel(this.errorChannel); adapter.setBeanName(this.beanName);
@Override protected FileTailingMessageProducerSupport doGet() { if (this.outputChannel == null) { this.factoryBean.setOutputChannel(new NullChannel()); } FileTailingMessageProducerSupport tailingMessageProducerSupport = null; try { this.factoryBean.afterPropertiesSet(); tailingMessageProducerSupport = this.factoryBean.getObject(); } catch (Exception e) { throw new IllegalStateException(e); } if (this.errorChannel != null) { tailingMessageProducerSupport.setErrorChannel(this.errorChannel); } tailingMessageProducerSupport.setOutputChannel(this.outputChannel); return tailingMessageProducerSupport; }
@Override protected FileTailingMessageProducerSupport doGet() { if (this.outputChannel == null) { this.factoryBean.setOutputChannel(new NullChannel()); } FileTailingMessageProducerSupport tailingMessageProducerSupport = null; try { this.factoryBean.afterPropertiesSet(); tailingMessageProducerSupport = this.factoryBean.getObject(); } catch (Exception e) { throw new IllegalStateException(e); } if (this.errorChannel != null) { tailingMessageProducerSupport.setErrorChannel(this.errorChannel); } tailingMessageProducerSupport.setOutputChannel(this.outputChannel); return tailingMessageProducerSupport; }