Class HazelcastTicketRegistryConfiguration


  • @Configuration("hazelcastTicketRegistryConfiguration")
    @EnableConfigurationProperties(org.apereo.cas.configuration.CasConfigurationProperties.class)
    public class HazelcastTicketRegistryConfiguration
    extends java.lang.Object
    Spring's Java configuration component for HazelcastInstance that is consumed and used by HazelcastTicketRegistry.

    This configuration class has the smarts to choose the configuration source for the HazelcastInstance that it produces by either loading the native hazelcast XML config file from a resource location or it creates the HazelcastInstance programmatically with a handful properties and their defaults (if not set) that it exposes to CAS deployers.

    Since:
    4.2.0
    • Constructor Detail

      • HazelcastTicketRegistryConfiguration

        public HazelcastTicketRegistryConfiguration()
    • Method Detail

      • ticketRegistry

        @Bean
        @RefreshScope
        public org.apereo.cas.ticket.registry.TicketRegistry ticketRegistry()
      • casTicketRegistryHazelcastInstance

        @ConditionalOnMissingBean(name="casTicketRegistryHazelcastInstance")
        @Bean
        public com.hazelcast.core.HazelcastInstance casTicketRegistryHazelcastInstance()
      • ticketRegistryCleaner

        @Bean
        public org.apereo.cas.ticket.registry.TicketRegistryCleaner ticketRegistryCleaner()