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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.data.mongodb.MongoDatabaseFactory
Class
<?> boolean
void
setEnvironment
(org.springframework.core.env.Environment environment)
-
Constructor Details
-
MongoDatabaseFactoryBean
public MongoDatabaseFactoryBean()
-
-
Method Details
-
getObject
public org.springframework.data.mongodb.MongoDatabaseFactory getObject()- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.data.mongodb.MongoDatabaseFactory>
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
-