Package com.gigaspaces.persistency
Class MongoSpaceDataSourceBeanFactory
java.lang.Object
com.gigaspaces.persistency.MongoSpaceDataSourceBeanFactory
- All Implemented Interfaces:
ClusterInfoAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>,org.springframework.beans.factory.InitializingBean
public class MongoSpaceDataSourceBeanFactory
extends Object
implements org.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, ClusterInfoAware
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()Class<?>booleanvoidsetClusterInfo(ClusterInfo clusterInfo) Sets the cluster information.voidsetMongoClientConnector(MongoClientConnector mongoClientConnector)
-
Constructor Details
-
MongoSpaceDataSourceBeanFactory
public MongoSpaceDataSourceBeanFactory()
-
-
Method Details
-
setMongoClientConnector
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>
-
setClusterInfo
Description copied from interface:ClusterInfoAwareSets the cluster information.Note, the cluster information is obtained externally from the application context which means that this feature need to be supported by specific containers (and is not supported by plain Spring application context). This means that beans that implement
ClusterInfoAwareshould take into account the fact that the cluster info provided might be null.- Specified by:
setClusterInfoin interfaceClusterInfoAware- Parameters:
clusterInfo- The cluster information to be injected
-