Skip to content

Commit d6ce07b

Browse files
committed
Rename JobExplorerFactoryBean to JdbcJobExplorerFactoryBean
Resolves #4846
1 parent 8dde852 commit d6ce07b

File tree

2 files changed

+43
-8
lines changed

2 files changed

+43
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2002-2025 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.batch.core.repository.explore.support;
18+
19+
import org.springframework.beans.factory.FactoryBean;
20+
21+
/**
22+
* A {@link FactoryBean} that automates the creation of a {@link SimpleJobExplorer} by
23+
* using JDBC DAO implementations. Requires the user to describe what kind of database
24+
* they use.
25+
*
26+
* @author Dave Syer
27+
* @author Mahmoud Ben Hassine
28+
* @since 6.0
29+
*/
30+
public class JdbcJobExplorerFactoryBean extends JobExplorerFactoryBean {
31+
32+
}

spring-batch-core/src/main/java/org/springframework/batch/core/repository/explore/support/JobExplorerFactoryBean.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,32 @@
6161
* @author Dave Syer
6262
* @author Mahmoud Ben Hassine
6363
* @since 2.0
64+
* @deprecated Since 6.0 and scheduled for removal in 6.2 in favor of using
65+
* {@link JdbcJobExplorerFactoryBean}.
6466
*/
67+
@Deprecated(since = "6.0", forRemoval = true)
6568
public class JobExplorerFactoryBean extends AbstractJobExplorerFactoryBean implements InitializingBean {
6669

67-
private DataSource dataSource;
70+
protected DataSource dataSource;
6871

69-
private JdbcOperations jdbcOperations;
72+
protected JdbcOperations jdbcOperations;
7073

71-
private String tablePrefix = AbstractJdbcBatchMetadataDao.DEFAULT_TABLE_PREFIX;
74+
protected String tablePrefix = AbstractJdbcBatchMetadataDao.DEFAULT_TABLE_PREFIX;
7275

73-
private final DataFieldMaxValueIncrementer incrementer = new AbstractDataFieldMaxValueIncrementer() {
76+
protected final DataFieldMaxValueIncrementer incrementer = new AbstractDataFieldMaxValueIncrementer() {
7477
@Override
7578
protected long getNextKey() {
7679
throw new IllegalStateException("JobExplorer is read only.");
7780
}
7881
};
7982

80-
private JobKeyGenerator jobKeyGenerator;
83+
protected JobKeyGenerator jobKeyGenerator;
8184

82-
private ExecutionContextSerializer serializer;
85+
protected ExecutionContextSerializer serializer;
8386

84-
private Charset charset = StandardCharsets.UTF_8;
87+
protected Charset charset = StandardCharsets.UTF_8;
8588

86-
private ConfigurableConversionService conversionService;
89+
protected ConfigurableConversionService conversionService;
8790

8891
/**
8992
* A custom implementation of {@link ExecutionContextSerializer}. The default, if not

0 commit comments

Comments
 (0)