public class RedisCollectionFactoryBean extends Object implements InitializingBean, BeanNameAware, FactoryBean<RedisStore>
| Modifier and Type | Class and Description |
|---|---|
static class |
RedisCollectionFactoryBean.CollectionType
Collection types supported by this factory.
|
| Constructor and Description |
|---|
RedisCollectionFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
RedisStore |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBeanName(String name) |
void |
setKey(String key)
Sets the key of the store.
|
void |
setTemplate(RedisTemplate<String,?> template)
Sets the template used by the resulting store.
|
void |
setType(RedisCollectionFactoryBean.CollectionType type)
Sets the store type.
|
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic RedisStore getObject()
getObject in interface FactoryBean<RedisStore>public Class<?> getObjectType()
getObjectType in interface FactoryBean<RedisStore>public boolean isSingleton()
isSingleton in interface FactoryBean<RedisStore>public void setBeanName(String name)
setBeanName in interface BeanNameAwarepublic void setType(RedisCollectionFactoryBean.CollectionType type)
type - The type to set.public void setTemplate(RedisTemplate<String,?> template)
template - The template to set.public void setKey(String key)
key - The key to set.