Package org.frankframework.mongodb
Class JndiMongoClientFactory
java.lang.Object
org.frankframework.jdbc.datasource.ObjectFactory<com.mongodb.client.MongoClient,Object>
org.frankframework.mongodb.JndiMongoClientFactory
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
MongoClientFactory that retrieves its configuration from either JNDI or `resources.yml`.
- Author:
- Gerrit van Brakel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.jdbc.datasource.ObjectFactory
ObjectFactory.ObjectInfo
-
Field Summary
FieldsFields inherited from class org.frankframework.jdbc.datasource.ObjectFactory
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mongodb.client.MongoClient
Allow implementing classes to augment the looked up object class 'O'.com.mongodb.client.MongoClient
getMongoClient
(String name) Methods inherited from class org.frankframework.jdbc.datasource.ObjectFactory
add, afterPropertiesSet, destroy, destroyObject, get, getObjectInfo, getObjectNames, toObjectInfo
-
Field Details
-
DEFAULT_DATASOURCE_NAME_PROPERTY
- See Also:
-
GLOBAL_DEFAULT_DATASOURCE_NAME_DEFAULT
- See Also:
-
GLOBAL_DEFAULT_DATASOURCE_NAME
-
-
Constructor Details
-
JndiMongoClientFactory
public JndiMongoClientFactory()
-
-
Method Details
-
augment
Description copied from class:ObjectFactory
Allow implementing classes to augment the looked up object class 'O'. Allows the originally created object to be mutated to another object. Useful to generate an object from a filled DTO.- Overrides:
augment
in classObjectFactory<com.mongodb.client.MongoClient,
Object>
-
getMongoClient
-