class DefaultListenerService implements ListenerService, InitializingBean {

    @Override
    public void terminateListener(final String beanName) {
        if (this.applicationContext.containsBean(beanName)) {
            final Listener listener = this.applicationContext.getBean(beanName, Listener.class);
            listener.stop();
        } else {
            throw new SpringBatchLightminConfigurationException("Could not terminate bean with name: " + beanName);
        }
    }

    public  DefaultListenerService(final BeanRegistrar beanRegistrar, final JobRegistry jobRegistry, final JobRepository jobRepository);

}