Class JmixHazelcastSessionsAutoConfiguration

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

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

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
    setHazelcastSessionProperties(org.springframework.boot.autoconfigure.session.HazelcastSessionProperties hazelcastSessionProperties)
     
    void
    setIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver)
     
    void
    setServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
     
    void
    setSessionIdGenerator(org.springframework.session.SessionIdGenerator sessionIdGenerator)
     
    void
    setSessionProperties(org.springframework.boot.autoconfigure.session.SessionProperties sessionProperties)
     
    void
    setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<org.springframework.session.hazelcast.HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers)
     

    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<org.springframework.session.hazelcast.HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers)
    • setServerProperties

      @Autowired public void setServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
    • setHazelcastSessionProperties

      @Autowired public void setHazelcastSessionProperties(org.springframework.boot.autoconfigure.session.HazelcastSessionProperties hazelcastSessionProperties)
    • setSessionProperties

      @Autowired public void setSessionProperties(org.springframework.boot.autoconfigure.session.SessionProperties sessionProperties)
    • setSessionIdGenerator

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