Class MongoDatabaseFactoryBean

java.lang.Object
org.mongounit.config.MongoDatabaseFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware

public class MongoDatabaseFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>, org.springframework.context.EnvironmentAware, org.springframework.beans.factory.InitializingBean
MongoDatabaseFactoryBean class is a definition of the MongoUnit specific MongoDatabaseFactory bean to be substituted for originally configured one in the Spring context.
  • Constructor Details

    • MongoDatabaseFactoryBean

      public MongoDatabaseFactoryBean()
  • Method Details

    • getObject

      public org.springframework.data.mongodb.MongoDatabaseFactory getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment environment)
      Specified by:
      setEnvironment in interface org.springframework.context.EnvironmentAware