File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012 the original author or authors.
2
+ * Copyright 2012-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -76,6 +76,16 @@ public void setTemplate(MongoOperations template) {
76
76
this .template = template ;
77
77
}
78
78
79
+ /**
80
+ * Get the {@link MongoOperations} to be used to save items to be written.
81
+ * This can be called by a subclass if necessary.
82
+ *
83
+ * @return template the template implementation to be used.
84
+ */
85
+ protected MongoOperations getTemplate () {
86
+ return template ;
87
+ }
88
+
79
89
/**
80
90
* Set the name of the Mongo collection to be written to.
81
91
*
You can’t perform that action at this time.
0 commit comments