public FolderListener(final ListenerConstructorWrapper listenerConstructorWrapper) { this.jobConfiguration = listenerConstructorWrapper.getJobConfiguration(); this.job = listenerConstructorWrapper.getJob(); this.jobParameters = listenerConstructorWrapper.getJobParameters(); this.jobLauncher = listenerConstructorWrapper.getJobLauncher(); this.jobIncrementer = listenerConstructorWrapper.getJobIncrementer(); this.jobListenerConfiguration = this.jobConfiguration.getJobListenerConfiguration(); this.listenerStatus = listenerConstructorWrapper.getJobConfiguration().getJobListenerConfiguration().getListenerStatus(); this.assertConstructor(); try { this.attachJobIncrementer(); this.initFileListFilter(); this.initTransformer(); this.initJobLaunchingMessageHandler(); this.initIntegrationFlow(); } catch (final Exception e) { throw new SpringBatchLightminConfigurationException(e.getMessage()); } }
public FolderListener(final ListenerConstructorWrapper listenerConstructorWrapper) { this.jobConfiguration = listenerConstructorWrapper.getJobConfiguration(); this.job = listenerConstructorWrapper.getJob(); this.jobParameters = listenerConstructorWrapper.getJobParameters(); this.jobLauncher = listenerConstructorWrapper.getJobLauncher(); this.jobIncrementer = listenerConstructorWrapper.getJobIncrementer(); this.jobListenerConfiguration = this.jobConfiguration.getJobListenerConfiguration(); this.listenerStatus = listenerConstructorWrapper.getJobConfiguration().getJobListenerConfiguration().getListenerStatus(); this.assertConstructor(); try { this.attachJobIncrementer(); this.initFileListFilter(); this.initTransformer(); this.initJobLaunchingMessageHandler(); this.initIntegrationFlow(); } catch (final Exception e) { throw new SpringBatchLightminConfigurationException(e.getMessage()); } }