public class MongoSpaceDataSourceBeanFactory extends Object implements org.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, ClusterInfoAware
| Constructor and Description |
|---|
MongoSpaceDataSourceBeanFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
MongoSpaceDataSource |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setClusterInfo(ClusterInfo clusterInfo)
Sets the cluster information.
|
void |
setMongoClientConnector(MongoClientConnector mongoClientConnector) |
public void setMongoClientConnector(MongoClientConnector mongoClientConnector)
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic MongoSpaceDataSource getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>public void setClusterInfo(ClusterInfo clusterInfo)
ClusterInfoAwareNote, 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 ClusterInfoAware should take into account the fact that the cluster info provided might be
null.
setClusterInfo in interface ClusterInfoAwareclusterInfo - The cluster information to be injectedCopyright © GigaSpaces.