Class JmixHazelcastSessionsAutoConfiguration

java.lang.Object
io.jmix.autoconfigure.sessions.JmixHazelcastSessionsAutoConfiguration

@AutoConfiguration(after=org.springframework.boot.session.autoconfigure.SessionAutoConfiguration.class, afterName="org.springframework.boot.hazelcast.autoconfigure.HazelcastAutoConfiguration") @ConditionalOnClass({com.hazelcast.core.HazelcastInstance.class,com.hazelcast.spring.session.HazelcastIndexedSessionRepository.class}) @ConditionalOnSingleCandidate(com.hazelcast.core.HazelcastInstance.class) @ConditionalOnMissingBean(org.springframework.session.SessionRepository.class) public class JmixHazelcastSessionsAutoConfiguration extends Object
Hazelcast sessions autoconfiguration. Copied from HazelcastHttpSessionConfiguration.

SpringHttpSessionConfiguration import avoided in order to use Jmix bean implementations which add Vaadin compatibility.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.session.FindByIndexNameSessionRepository<?>
     
    void
    setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
     
    void
    setHazelcastInstance(org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> springSessionHazelcastInstance, org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> hazelcastInstance)
     
    void
    setIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver)
     
    void
    setServletContext(jakarta.servlet.ServletContext servletContext)
     
    void
    setSessionIdGenerator(org.springframework.session.SessionIdGenerator sessionIdGenerator)
     
    void
    setSessionMapCustomizer(org.springframework.beans.factory.ObjectProvider<com.hazelcast.spring.session.SessionMapCustomizer> sessionMapCustomizers)
     
    void
    setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<com.hazelcast.spring.session.HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers)
     
    void
    setSessionTimeout(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.session.autoconfigure.SessionTimeout> sessionTimeout)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JmixHazelcastSessionsAutoConfiguration

      public JmixHazelcastSessionsAutoConfiguration()
  • Method Details

    • sessionRepository

      @Bean public org.springframework.session.FindByIndexNameSessionRepository<?> sessionRepository()
    • setHazelcastInstance

      @Autowired public void setHazelcastInstance(@SpringSessionHazelcastInstance org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> springSessionHazelcastInstance, org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> hazelcastInstance)
    • setApplicationEventPublisher

      @Autowired public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
    • setIndexResolver

      @Autowired(required=false) public void setIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver)
    • setSessionRepositoryCustomizer

      @Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<com.hazelcast.spring.session.HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers)
    • setSessionMapCustomizer

      @Autowired(required=false) public void setSessionMapCustomizer(org.springframework.beans.factory.ObjectProvider<com.hazelcast.spring.session.SessionMapCustomizer> sessionMapCustomizers)
    • setSessionTimeout

      @Autowired public void setSessionTimeout(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.session.autoconfigure.SessionTimeout> sessionTimeout)
    • setServletContext

      @Autowired public void setServletContext(jakarta.servlet.ServletContext servletContext)
    • setSessionIdGenerator

      @Autowired(required=false) public void setSessionIdGenerator(org.springframework.session.SessionIdGenerator sessionIdGenerator)