public class SessionAttributesIndexFactoryBean
extends java.lang.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 java.lang.String[] |
DEFAULT_INDEXABLE_SESSION_ATTRIBUTES |
| Constructor and Description |
|---|
SessionAttributesIndexFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected java.lang.String[] |
getIndexableSessionAttributes() |
protected java.lang.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() |
java.lang.Class<?> |
getObjectType() |
protected java.lang.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(java.lang.String beanName) |
void |
setGemFireCache(com.gemstone.gemfire.cache.GemFireCache gemfireCache) |
void |
setIndexableSessionAttributes(java.lang.String[] indexableSessionAttributes) |
void |
setRegionName(java.lang.String regionName) |
protected static final java.lang.String[] DEFAULT_INDEXABLE_SESSION_ATTRIBUTES
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionprotected boolean isIndexableSessionAttributesConfigured()
FactoryBean.FactoryBeansetIndexableSessionAttributes(String[])protected com.gemstone.gemfire.cache.query.Index newIndex()
throws java.lang.Exception
Index over the attributes of the HttpSession.Index over the HttpSession attributes.java.lang.Exception - if an error occurs while initializing the GemFire Index.IndexFactoryBeanprotected java.lang.String getIndexableSessionAttributesAsGemFireIndexExpression()
Index.getIndexedExpression()public com.gemstone.gemfire.cache.query.Index getObject()
throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<com.gemstone.gemfire.cache.query.Index>java.lang.Exceptionpublic java.lang.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(java.lang.String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setGemFireCache(com.gemstone.gemfire.cache.GemFireCache gemfireCache)
public void setIndexableSessionAttributes(java.lang.String[] indexableSessionAttributes)
protected java.lang.String[] getIndexableSessionAttributes()
public void setRegionName(java.lang.String regionName)
protected java.lang.String getRegionName()