public class InfinispanNamedRemoteCacheFactoryBean<K,V> extends Object implements org.springframework.beans.factory.FactoryBean<org.infinispan.client.hotrod.RemoteCache<K,V>>, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
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 and Description |
---|
InfinispanNamedRemoteCacheFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.infinispan.client.hotrod.RemoteCache<K,V> |
getObject() |
Class<? extends ConcurrentMap> |
getObjectType() |
boolean |
isSingleton()
Always return true.
|
void |
setBeanName(String name) |
void |
setCacheName(String cacheName)
Sets the
name of the to be created. |
void |
setInfinispanRemoteCacheManager(org.infinispan.client.hotrod.RemoteCacheManager infinispanRemoteCacheManager)
Sets the
to be used for creating our
instance. |
public InfinispanNamedRemoteCacheFactoryBean()
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 Class<? extends ConcurrentMap> getObjectType()
public boolean 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(org.infinispan.client.hotrod.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
instanceCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.