public class MapFactoryBean extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.BeanNameAware
IMap factories. Uses the referenced space
(using setSpace(com.j_spaces.core.IJSpace)) in order to build the map interface around
it.
Supports the cluster flag controlling if the map will work with a clustered view of the space
or directly with a cluster member. By default it will work directly with a cluster member if the
space was loaded in embedded mode (as if clustered flag was set to true), otherwise
it will work with a clustered view.
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
MapFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected IMap |
createMap() |
Object |
getObject() |
Class |
getObjectType() |
protected IJSpace |
getSpace() |
boolean |
isSingleton() |
void |
setBeanName(String beanName)
Injected by Spring with the bean name.
|
void |
setClustered(Boolean clustered)
Sets the cluster flag controlling if this
IMap will work with a
clustered view of the space or directly with a cluster member. |
void |
setCompression(int compression)
Sets the compression level.
|
void |
setLocalCacheSupport(LocalCacheSupport localCacheSupport)
If set, will use local cache with this map.
|
void |
setSpace(IJSpace space)
Sets the Space the Map will be built on top.
|
public void setSpace(IJSpace space)
protected IJSpace getSpace()
public void setClustered(Boolean clustered)
Sets the cluster flag controlling if this IMap will work with a
clustered view of the space or directly with a cluster member. By default if this flag is not
set it will be set automatically by this factory. It will be set to true if the
space is an embedded one AND the space is not a local cache proxy. It will be set to
false otherwise (i.e. the space is not an embedded space OR the space is a local
cache proxy).
clustered - If the IMap is going to work with a clustered view
of the space or directly with a cluster memberpublic void setCompression(int compression)
0.public void setLocalCacheSupport(LocalCacheSupport localCacheSupport)
public void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanprotected IMap createMap()
public Object getObject()
getObject in interface org.springframework.beans.factory.FactoryBeanpublic Class getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBeanpublic boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanCopyright © GigaSpaces.