|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.spring.support.remote.InfinispanNamedRemoteCacheFactoryBean<K,V>
public class InfinispanNamedRemoteCacheFactoryBean<K,V>
A
for creating a
native FactoryBean
named
Infinispan
, delegating to a
org.infinispan.Cache
configurable
. If no cache name is explicitly
set, this oorg.infinispan.client.hotrod.RemoteCacheManagerr
FactoryBean
's
will be
used instead.
beanName
Constructor Summary | |
---|---|
InfinispanNamedRemoteCacheFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
BasicCache<K,V> |
getObject()
|
Class<? extends BasicCache> |
getObjectType()
|
boolean |
isSingleton()
Always return true. |
void |
setBeanName(String name)
|
void |
setCacheName(String cacheName)
Sets the name of the to be created. |
void |
setInfinispanRemoteCacheManager(RemoteCacheManager infinispanRemoteCacheManager)
Sets the to be used for creating our
instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InfinispanNamedRemoteCacheFactoryBean()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
InitializingBean.afterPropertiesSet()
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
BeanNameAware.setBeanName(java.lang.String)
public BasicCache<K,V> getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<BasicCache<K,V>>
Exception
FactoryBean.getObject()
public Class<? extends BasicCache> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<BasicCache<K,V>>
FactoryBean.getObjectType()
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<BasicCache<K,V>>
FactoryBean.isSingleton()
public void setCacheName(String cacheName)
Sets the name
of the
to be created. If no explicit org.infinispan.Cache
cacheName
is
set, this FactoryBean
will use its
as the beanName
cacheName
.
cacheName
- The name
of the org.infinispan.Cache
to be createdpublic void setInfinispanRemoteCacheManager(RemoteCacheManager infinispanRemoteCacheManager)
Sets the
to be used for creating our
org.infinispan.client.hotrod.RemoteCacheManager
instance. Note that this is a
mandatory property.
Cache
infinispanRemoteCacheManager
- The org.infinispan.client.hotrod.RemoteCacheManager
to be used for
creating our Cache
instance
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |