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

public class JndiMongoClientFactory extends ObjectFactory<com.mongodb.client.MongoClient,Object>
MongoClientFactory that retrieves its configuration from either JNDI or `resources.yml`.
Author:
Gerrit van Brakel
  • Field Details

    • DEFAULT_DATASOURCE_NAME_PROPERTY

      public static final String DEFAULT_DATASOURCE_NAME_PROPERTY
      See Also:
    • GLOBAL_DEFAULT_DATASOURCE_NAME_DEFAULT

      public static final String GLOBAL_DEFAULT_DATASOURCE_NAME_DEFAULT
      See Also:
    • GLOBAL_DEFAULT_DATASOURCE_NAME

      public static final String GLOBAL_DEFAULT_DATASOURCE_NAME
  • Constructor Details

    • JndiMongoClientFactory

      public JndiMongoClientFactory()
  • Method Details

    • augment

      protected com.mongodb.client.MongoClient augment(Object object, String objectName)
      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 class ObjectFactory<com.mongodb.client.MongoClient,Object>
    • getMongoClient

      public com.mongodb.client.MongoClient getMongoClient(String name)