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 Details

    • DEFAULT_INDEXABLE_SESSION_ATTRIBUTES

      protected static final String[] DEFAULT_INDEXABLE_SESSION_ATTRIBUTES
  • Constructor Details

    • SessionAttributesIndexFactoryBean

      public SessionAttributesIndexFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • isIndexableSessionAttributesConfigured

      protected boolean isIndexableSessionAttributesConfigured()
      Determines whether any indexable Session attributes were configured for this FactoryBean.
      Returns:
      a boolean value indicating whether any indexable Session attributes were configured for this FactoryBean
      See Also:
    • newIndex

      protected org.apache.geode.cache.query.Index newIndex() throws Exception
      Constructs a Pivotal GemFire Index over the attributes of the HttpSession.
      Returns:
      a Pivotal GemFire Index over the HttpSession attributes.
      Throws:
      Exception - if an error occurs while initializing the Pivotal GemFire Index.
      See Also:
      • IndexFactoryBean
    • getIndexableSessionAttributesAsGemFireIndexExpression

      protected 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.
      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 interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.query.Index>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.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 interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • setBeanName

      public void setBeanName(String beanName)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • setGemFireCache

      public void setGemFireCache(org.apache.geode.cache.GemFireCache gemfireCache)
    • setIndexableSessionAttributes

      public void setIndexableSessionAttributes(String[] indexableSessionAttributes)
    • getIndexableSessionAttributes

      protected String[] getIndexableSessionAttributes()
    • setRegionName

      public void setRegionName(String regionName)
    • getRegionName

      protected String getRegionName()