Package org.mongounit.config
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.-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.springframework.data.mongodb.MongoDatabaseFactoryClass<?> booleanvoidsetEnvironment(org.springframework.core.env.Environment environment)
-
Constructor Details
-
MongoDatabaseFactoryBean
public MongoDatabaseFactoryBean()
-
-
Method Details
-
getObject
public org.springframework.data.mongodb.MongoDatabaseFactory getObject()- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-