title: Retrieve spring-batch job bean definitions
body: <p>Is there a way to retrieve the job beans declared within this location: <strong>classpath*/META-INF/spring/batch/jobs/*.xml</strong> ?</p>
  
  <p>Tried the code below but I was not able to retrieve them.</p>
  
  <pre><code>  @Autowired
    private ApplicationContext applicationContext;
  
    public void sometMethod() {
  
        AutowireCapableBeanFactory beanFactory = applicationContext.getAutowireCapableBeanFactory();
        String[] strings = ((BeanDefinitionRegistry) beanFactory).getBeanDefinitionNames();
  
    }
  </code></pre>