Package io.jmix.autoconfigure.sessions
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.session.FindByIndexNameSessionRepository<?>voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) voidsetHazelcastInstance(org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> springSessionHazelcastInstance, org.springframework.beans.factory.ObjectProvider<com.hazelcast.core.HazelcastInstance> hazelcastInstance) voidsetHazelcastSessionProperties(org.springframework.boot.autoconfigure.session.HazelcastSessionProperties hazelcastSessionProperties) voidsetIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver) voidsetServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties) voidsetSessionIdGenerator(org.springframework.session.SessionIdGenerator sessionIdGenerator) voidsetSessionProperties(org.springframework.boot.autoconfigure.session.SessionProperties sessionProperties) voidsetSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<org.springframework.session.hazelcast.HazelcastIndexedSessionRepository>> sessionRepositoryCustomizers)
-
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)
-