public class SessionAttributesIndexFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware
FactoryBean
that creates a Pivotal 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 Pivotal GemFire as single, comma-delimited
String value constituting the Index expression of the Index definition.
|
org.apache.geode.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 org.apache.geode.cache.query.Index |
newIndex()
Constructs a Pivotal GemFire
Index over the attributes of the HttpSession . |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setBeanName(java.lang.String beanName) |
void |
setGemFireCache(org.apache.geode.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.InitializingBean
java.lang.Exception
protected boolean isIndexableSessionAttributesConfigured()
FactoryBean
.FactoryBean
setIndexableSessionAttributes(String[])
protected org.apache.geode.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 Pivotal GemFire Index
.IndexFactoryBean
protected java.lang.String getIndexableSessionAttributesAsGemFireIndexExpression()
Index.getIndexedExpression()
public org.apache.geode.cache.query.Index getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>
public java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void setBeanName(java.lang.String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public void setGemFireCache(org.apache.geode.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()