[hibernate-commits] [hibernate/hibernate-search] f857d7: HSEARCH-3801 Hibernate Search blocks loading of no...

David Steinkopff noreply at github.com
Tue Jan 14 05:03:31 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-search
  Commit: f857d7cbf9266b75cb775e484f2015bf8d02f927
      https://github.com/hibernate/hibernate-search/commit/f857d7cbf9266b75cb775e484f2015bf8d02f927
  Author: David Steinkopff <zeitiger at users.noreply.github.com>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

  Changed paths:
    M legacy/jsr352/jberet/src/main/java/org/hibernate/search/jsr352/jberet/impl/HibernateSearchJobXmlResolver.java

  Log Message:
  -----------
  HSEARCH-3801 Hibernate Search blocks loading of non hibernate batch jobs

In reference of `org.jberet.spi.JobXmlResolver` it's defined that a resolver that is not responsible should return `null` instead of throwing a runtime exception
```
    /**
     * Locates the job XML and creates a stream to the contents.
     *
     * @param jobXml      the name of the job XML with a {@code .xml} suffix
     * @param classLoader the class loader for the application
     *
     * @return a stream of the job XML or {@code null} if the job XML content was not found
     *
     * @throws java.io.IOException if an error occurs creating the stream
     */
```

Update HibernateSearchJobXmlResolver.java




More information about the hibernate-commits mailing list