Package org.teiid.spring.data.mongodb
Class MongoDBConnectionFactory
- java.lang.Object
-
- org.teiid.spring.data.mongodb.MongoDBConnectionFactory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.teiid.resource.api.ConnectionFactory<MongoDBConnection>
,BaseConnectionFactory<MongoDBConnection>
public class MongoDBConnectionFactory extends Object implements BaseConnectionFactory<MongoDBConnection>
-
-
Constructor Summary
Constructors Constructor Description MongoDBConnectionFactory(MongoDBConfiguration mongoDBConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
MongoDBConnection
getConnection()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teiid.spring.data.BaseConnectionFactory
getAlias, getTranslatorName
-
-
-
-
Constructor Detail
-
MongoDBConnectionFactory
public MongoDBConnectionFactory(MongoDBConfiguration mongoDBConfiguration)
-
-
Method Detail
-
getConnection
public MongoDBConnection getConnection() throws Exception
- Specified by:
getConnection
in interfaceorg.teiid.resource.api.ConnectionFactory<MongoDBConnection>
- Throws:
Exception
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-