Skip to content

Commit 1105d22

Browse files
committed
Update javadocs
1 parent 0d42569 commit 1105d22

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,17 @@
2525
import org.springframework.batch.core.repository.dao.MongoStepExecutionDao;
2626
import org.springframework.beans.factory.InitializingBean;
2727
import org.springframework.data.mongodb.core.MongoOperations;
28+
import org.springframework.data.mongodb.core.convert.MappingMongoConverter;
2829
import org.springframework.util.Assert;
2930

3031
/**
32+
* This factory bean creates a job explorer backed by MongoDB. It requires a mongo
33+
* template and a mongo transaction manager. <strong>The mongo template must be configured
34+
* with a {@link MappingMongoConverter} having a {@code MapKeyDotReplacement} set to a non
35+
* null value. See {@code MongoDBJobRepositoryIntegrationTests} for an example. This is
36+
* required to support execution context keys containing dots (like "step.type" or
37+
* "batch.version")</strong>
38+
*
3139
* @author Mahmoud Ben Hassine
3240
* @since 5.2.0
3341
*/

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,17 @@
2525
import org.springframework.batch.core.repository.dao.MongoStepExecutionDao;
2626
import org.springframework.beans.factory.InitializingBean;
2727
import org.springframework.data.mongodb.core.MongoOperations;
28+
import org.springframework.data.mongodb.core.convert.MappingMongoConverter;
2829
import org.springframework.util.Assert;
2930

3031
/**
32+
* This factory bean creates a job repository backed by MongoDB. It requires a mongo
33+
* template and a mongo transaction manager. <strong>The mongo template must be configured
34+
* with a {@link MappingMongoConverter} having a {@code MapKeyDotReplacement} set to a non
35+
* null value. See {@code MongoDBJobRepositoryIntegrationTests} for an example. This is
36+
* required to support execution context keys containing dots (like "step.type" or
37+
* "batch.version")</strong>
38+
*
3139
* @author Mahmoud Ben Hassine
3240
* @since 5.2.0
3341
*/

0 commit comments

Comments
 (0)