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.DisposableBean
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public MongoSpaceDataSource getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<MongoSpaceDataSource>
Exception
public 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)
ClusterInfoAware
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 ClusterInfoAware
should take into account the fact that the cluster info provided might be
null.
setClusterInfo
in interface ClusterInfoAware
clusterInfo
- The cluster information to be injectedCopyright © GigaSpaces.