|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.space.cache.AbstractLocalCacheSpaceFactoryBean
public abstract class AbstractLocalCacheSpaceFactoryBean
Base class for different Local cache space proxies that work with a master IJSpace
. The
master is set using setSpace(IJSpace)
. This factory represents an IJSpace
that
is the local cache proxy on top of the master space.
Allows to set additional properties that further configure the local cache using
setProperties(Properties)
. Properties that control the nature of the local cache are
obtained using createCacheProperties()
callback.
Field Summary | |
---|---|
protected Log |
logger
|
Constructor Summary | |
---|---|
AbstractLocalCacheSpaceFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Constructs a new local cache IJSpace based on the master local cache set using
setSpace(IJSpace) and a set of properties driving the actual local cache type based
on createCacheProperties() . |
protected abstract Properties |
createCacheProperties()
Subclasses should implement this method to return the properties relevant for the local concrete local cache implementation. |
void |
destroy()
Closes the local cache space |
protected String |
getBeanName()
|
Object |
getObject()
Returns an IJSpace that is the local cache wrapping the
master proxy set using setSpace(com.j_spaces.core.IJSpace) . |
Class<? extends IJSpace> |
getObjectType()
Returns the type of the factory object. |
ServiceDetails[] |
getServicesDetails()
Retruns one or more service details that the service exposes. |
boolean |
isSingleton()
Returns true since this bean is a singleton. |
protected void |
prepareUrl(SpaceURL spaceURL)
|
void |
setBeanName(String beanName)
Spring callback that sets the bean name. |
void |
setProperties(Properties properties)
Sets additional properties for the local cache. |
void |
setSpace(IJSpace space)
Sets the master space that a local cache will be built on top. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Log logger
Constructor Detail |
---|
public AbstractLocalCacheSpaceFactoryBean()
Method Detail |
---|
public void setSpace(IJSpace space)
public void setProperties(Properties properties)
public void setBeanName(String beanName)
setBeanName
in interface BeanNameAware
protected String getBeanName()
public void afterPropertiesSet()
IJSpace
based on the master local cache set using
setSpace(IJSpace)
and a set of properties driving the actual local cache type based
on createCacheProperties()
. Additional properties are applied based on
setProperties(java.util.Properties)
.
afterPropertiesSet
in interface InitializingBean
SpaceFinder.find(com.j_spaces.core.client.SpaceURL,com.j_spaces.core.IJSpace,com.sun.jini.start.LifeCycle)
public void destroy()
destroy
in interface DisposableBean
protected abstract Properties createCacheProperties()
protected void prepareUrl(SpaceURL spaceURL)
public Object getObject()
IJSpace
that is the local cache wrapping the
master proxy set using setSpace(com.j_spaces.core.IJSpace)
.
getObject
in interface FactoryBean
public Class<? extends IJSpace> getObjectType()
getObjectType
in interface FactoryBean
public boolean isSingleton()
true
since this bean is a singleton.
isSingleton
in interface FactoryBean
public ServiceDetails[] getServicesDetails()
ServiceDetailsProvider
getServicesDetails
in interface ServiceDetailsProvider
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |