Package org.frankframework.mongodb
Interface IMongoClientFactory
- All Known Implementing Classes:
JndiMongoClientFactory
public interface IMongoClientFactory
-
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.client.MongoClient
getMongoClient
(String dataSourceName) Look up a MongoClient from the JNDIcom.mongodb.client.MongoClient
getMongoClient
(String dataSourceName, Properties jndiEnvironment) Set the JNDI environment to use for JNDI lookups.Return all known/registered MongoClients
-
Method Details
-
getMongoClient
Look up a MongoClient from the JNDI- Throws:
NamingException
-
getMongoClient
com.mongodb.client.MongoClient getMongoClient(String dataSourceName, Properties jndiEnvironment) throws NamingException Set the JNDI environment to use for JNDI lookups.Uses a Spring JndiTemplate with the given environment settings.
- Throws:
NamingException
- See Also:
-
JndiAccessor.setJndiTemplate(org.springframework.jndi.JndiTemplate)
-
getMongoClients
Return all known/registered MongoClients
-