Class JobRunrMongoDBStorageProviderFactory


  • @Factory
    @Requires(classes=com.mongodb.client.MongoClient.class) @Requires(beans=com.mongodb.client.MongoClient.class) @Requires(property="jobrunr.database.type",value="mongodb",defaultValue="mongodb")
    public class JobRunrMongoDBStorageProviderFactory
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.jobrunr.storage.StorageProvider mongoDBStorageProvider​(com.mongodb.client.MongoClient mongoClient, org.jobrunr.jobs.mappers.JobMapper jobMapper)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JobRunrMongoDBStorageProviderFactory

        public JobRunrMongoDBStorageProviderFactory()
    • Method Detail

      • mongoDBStorageProvider

        @Singleton
        @Primary
        public org.jobrunr.storage.StorageProvider mongoDBStorageProvider​(com.mongodb.client.MongoClient mongoClient,
                                                                          org.jobrunr.jobs.mappers.JobMapper jobMapper)