Skip to content

Commit 585a7fa

Browse files
committed
refactor: move inject to use a single constructor
Signed-off-by: Otavio Santana <[email protected]>
1 parent 765edcb commit 585a7fa

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

jnosql-mongodb/src/main/java/org/eclipse/jnosql/databases/mongodb/mapping/DefaultMongoDBTemplate.java

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,18 @@
4040
@Typed(MongoDBTemplate.class)
4141
class DefaultMongoDBTemplate extends AbstractDocumentTemplate implements MongoDBTemplate {
4242

43-
private Instance<MongoDBDocumentManager> manager;
43+
private final Instance<MongoDBDocumentManager> manager;
4444

45-
private DocumentEntityConverter converter;
45+
private final DocumentEntityConverter converter;
4646

47-
private DocumentWorkflow workflow;
47+
private final DocumentWorkflow workflow;
4848

49-
private EntitiesMetadata entities;
49+
private final EntitiesMetadata entities;
5050

51-
private Converters converters;
51+
private final Converters converters;
5252

53-
private DocumentEventPersistManager persistManager;
53+
private final DocumentEventPersistManager persistManager;
5454

55-
/**
56-
* To CDI only
57-
*/
58-
@Deprecated
59-
DefaultMongoDBTemplate() {
60-
}
6155

6256
@Inject
6357
DefaultMongoDBTemplate(Instance<MongoDBDocumentManager> manager,

0 commit comments

Comments
 (0)