Class SessionAttributesIndexFactoryBean
java.lang.Object
org.springframework.session.data.gemfire.config.annotation.web.http.support.SessionAttributesIndexFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>
,org.springframework.beans.factory.InitializingBean
public class SessionAttributesIndexFactoryBean
extends 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
The SessionAttributesIndexFactoryBean class is a Spring
FactoryBean
that creates a Pivotal GemFire Index
on the session attributes of the HttpSession
object.- Since:
- 1.3.0
- See Also:
-
BeanFactoryAware
BeanNameAware
FactoryBean
InitializingBean
Index
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String[]
protected String
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
Class<?>
protected String
protected boolean
Determines whether any indexable Session attributes were configured for thisFactoryBean
.boolean
protected org.apache.geode.cache.query.Index
newIndex()
Constructs a Pivotal GemFireIndex
over the attributes of theHttpSession
.void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) void
setBeanName
(String beanName) void
setGemFireCache
(org.apache.geode.cache.GemFireCache gemfireCache) void
setIndexableSessionAttributes
(String[] indexableSessionAttributes) void
setRegionName
(String regionName)
-
Field Details
-
DEFAULT_INDEXABLE_SESSION_ATTRIBUTES
-
-
Constructor Details
-
SessionAttributesIndexFactoryBean
public SessionAttributesIndexFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
isIndexableSessionAttributesConfigured
protected boolean isIndexableSessionAttributesConfigured()Determines whether any indexable Session attributes were configured for thisFactoryBean
.- Returns:
- a boolean value indicating whether any indexable Session attributes were configured
for this
FactoryBean
- See Also:
-
newIndex
Constructs a Pivotal GemFireIndex
over the attributes of theHttpSession
.- Returns:
- a Pivotal GemFire
Index
over theHttpSession
attributes. - Throws:
Exception
- if an error occurs while initializing the Pivotal GemFireIndex
.- See Also:
-
IndexFactoryBean
-
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.- Returns:
- a String composed of all the named Session attributes for which GemFire will create an Index as an Index definition expression. If the indexable Session attributes were not configured, then the wildcard ("*") is returned.
- See Also:
-
Index.getIndexedExpression()
-
getObject
public org.apache.geode.cache.query.Index getObject()- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
setBeanName
- Specified by:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
-
setGemFireCache
public void setGemFireCache(org.apache.geode.cache.GemFireCache gemfireCache) -
setIndexableSessionAttributes
-
getIndexableSessionAttributes
-
setRegionName
-
getRegionName
-