Rename JobExplorerFactoryBean to JdbcJobExplorerFactoryBean

Resolves #4846
This commit is contained in:
Mahmoud Ben Hassine
2025-05-23 15:23:43 +02:00
parent 8dde8529d3
commit d6ce07ba83
2 changed files with 43 additions and 8 deletions

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.core.repository.explore.support;
import org.springframework.beans.factory.FactoryBean;
/**
* A {@link FactoryBean} that automates the creation of a {@link SimpleJobExplorer} by
* using JDBC DAO implementations. Requires the user to describe what kind of database
* they use.
*
* @author Dave Syer
* @author Mahmoud Ben Hassine
* @since 6.0
*/
public class JdbcJobExplorerFactoryBean extends JobExplorerFactoryBean {
}

View File

@@ -61,29 +61,32 @@ import org.springframework.util.Assert;
* @author Dave Syer
* @author Mahmoud Ben Hassine
* @since 2.0
* @deprecated Since 6.0 and scheduled for removal in 6.2 in favor of using
* {@link JdbcJobExplorerFactoryBean}.
*/
@Deprecated(since = "6.0", forRemoval = true)
public class JobExplorerFactoryBean extends AbstractJobExplorerFactoryBean implements InitializingBean {
private DataSource dataSource;
protected DataSource dataSource;
private JdbcOperations jdbcOperations;
protected JdbcOperations jdbcOperations;
private String tablePrefix = AbstractJdbcBatchMetadataDao.DEFAULT_TABLE_PREFIX;
protected String tablePrefix = AbstractJdbcBatchMetadataDao.DEFAULT_TABLE_PREFIX;
private final DataFieldMaxValueIncrementer incrementer = new AbstractDataFieldMaxValueIncrementer() {
protected final DataFieldMaxValueIncrementer incrementer = new AbstractDataFieldMaxValueIncrementer() {
@Override
protected long getNextKey() {
throw new IllegalStateException("JobExplorer is read only.");
}
};
private JobKeyGenerator jobKeyGenerator;
protected JobKeyGenerator jobKeyGenerator;
private ExecutionContextSerializer serializer;
protected ExecutionContextSerializer serializer;
private Charset charset = StandardCharsets.UTF_8;
protected Charset charset = StandardCharsets.UTF_8;
private ConfigurableConversionService conversionService;
protected ConfigurableConversionService conversionService;
/**
* A custom implementation of {@link ExecutionContextSerializer}. The default, if not