public class SessionAttributesIndexFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<com.gemstone.gemfire.cache.query.Index>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware
FactoryBean that creates a GemFire Index
on the session attributes of the HttpSession object.BeanFactoryAware,
BeanNameAware,
FactoryBean,
InitializingBean,
Index| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
DEFAULT_INDEXABLE_SESSION_ATTRIBUTES |
| Constructor and Description |
|---|
SessionAttributesIndexFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected String[] |
getIndexableSessionAttributes() |
protected String |
getIndexableSessionAttributesAsGemFireIndexExpression()
Gets the names of all Session attributes that will be indexed by GemFire as single, comma-delimited
String value constituting the Index expression of the Index definition.
|
com.gemstone.gemfire.cache.query.Index |
getObject() |
Class<?> |
getObjectType() |
protected String |
getRegionName() |
protected boolean |
isIndexableSessionAttributesConfigured()
Determines whether any indexable Session attributes were configured for this
FactoryBean. |
boolean |
isSingleton() |
protected com.gemstone.gemfire.cache.query.Index |
newIndex()
Constructs a GemFire
Index over the attributes of the HttpSession. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setBeanName(String beanName) |
void |
setGemFireCache(com.gemstone.gemfire.cache.GemFireCache gemfireCache) |
void |
setIndexableSessionAttributes(String[] indexableSessionAttributes) |
void |
setRegionName(String regionName) |
protected static final String[] DEFAULT_INDEXABLE_SESSION_ATTRIBUTES
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected boolean isIndexableSessionAttributesConfigured()
FactoryBean.FactoryBeansetIndexableSessionAttributes(String[])protected com.gemstone.gemfire.cache.query.Index newIndex()
throws Exception
Index over the attributes of the HttpSession.Index over the HttpSession attributes.Exception - if an error occurs while initializing the GemFire Index.IndexFactoryBeanprotected String getIndexableSessionAttributesAsGemFireIndexExpression()
Index.getIndexedExpression()public com.gemstone.gemfire.cache.query.Index getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<com.gemstone.gemfire.cache.query.Index>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<com.gemstone.gemfire.cache.query.Index>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<com.gemstone.gemfire.cache.query.Index>public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setGemFireCache(com.gemstone.gemfire.cache.GemFireCache gemfireCache)
public void setIndexableSessionAttributes(String[] indexableSessionAttributes)
protected String[] getIndexableSessionAttributes()
public void setRegionName(String regionName)
protected String getRegionName()