Class InfinispanNamedRemoteCacheFactoryBean<K,V>
java.lang.Object
org.infinispan.spring.remote.support.InfinispanNamedRemoteCacheFactoryBean<K,V>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<RemoteCache<K,
,V>> org.springframework.beans.factory.InitializingBean
public class InfinispanNamedRemoteCacheFactoryBean<K,V>
extends Object
implements org.springframework.beans.factory.FactoryBean<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
- Author:
- Olaf Bergner
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Class<? extends ConcurrentMap>
boolean
Always return true.void
setBeanName
(String name) void
setCacheName
(String cacheName) Sets thename
of the
to be created.org.infinispan.Cache
void
setInfinispanRemoteCacheManager
(RemoteCacheManager infinispanRemoteCacheManager) Sets the
to be used for creating ourorg.infinispan.client.hotrod.RemoteCacheManager
instance.Cache
-
Constructor Details
-
InfinispanNamedRemoteCacheFactoryBean
public InfinispanNamedRemoteCacheFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
- See Also:
-
InitializingBean.afterPropertiesSet()
-
setBeanName
- Specified by:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
- See Also:
-
BeanNameAware.setBeanName(String)
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<K>
- See Also:
-
FactoryBean.getObject()
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<K>
- See Also:
-
FactoryBean.getObjectType()
-
isSingleton
public boolean isSingleton()Always return true.- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<K>
- See Also:
-
FactoryBean.isSingleton()
-
setCacheName
Sets the
name
of the
to be created. If no explicitorg.infinispan.Cache
cacheName
is set, thisFactoryBean
will use its
as thebeanName
cacheName
.- Parameters:
cacheName
- Thename
of the
to be createdorg.infinispan.Cache
-
setInfinispanRemoteCacheManager
Sets the
to be used for creating ourorg.infinispan.client.hotrod.RemoteCacheManager
instance. Note that this is a mandatory property.Cache
- Parameters:
infinispanRemoteCacheManager
- The
to be used for creating ourorg.infinispan.client.hotrod.RemoteCacheManager
instanceCache
-