Class HazelcastTicketRegistryConfiguration


  • @Configuration(value="HazelcastTicketRegistryConfiguration",
                   proxyBeanMethods=false)
    @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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.hazelcast.core.HazelcastInstance casTicketRegistryHazelcastInstance​(org.apereo.cas.ticket.TicketCatalog ticketCatalog, org.apereo.cas.configuration.CasConfigurationProperties casProperties)  
      org.apereo.cas.ticket.registry.TicketRegistry ticketRegistry​(com.hazelcast.core.HazelcastInstance casTicketRegistryHazelcastInstance, org.apereo.cas.ticket.TicketCatalog ticketCatalog, org.apereo.cas.configuration.CasConfigurationProperties casProperties)  
      org.apereo.cas.ticket.registry.TicketRegistryCleaner ticketRegistryCleaner()  
      • Methods inherited from class java.lang.Object

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

      • HazelcastTicketRegistryConfiguration

        public HazelcastTicketRegistryConfiguration()
    • Method Detail

      • ticketRegistry

        @Bean
        @RefreshScope(proxyMode=DEFAULT)
        public org.apereo.cas.ticket.registry.TicketRegistry ticketRegistry​(@Qualifier("casTicketRegistryHazelcastInstance")
                                                                            com.hazelcast.core.HazelcastInstance casTicketRegistryHazelcastInstance,
                                                                            @Qualifier("ticketCatalog")
                                                                            org.apereo.cas.ticket.TicketCatalog ticketCatalog,
                                                                            org.apereo.cas.configuration.CasConfigurationProperties casProperties)
      • casTicketRegistryHazelcastInstance

        @ConditionalOnMissingBean(name="casTicketRegistryHazelcastInstance")
        @Bean(destroyMethod="shutdown")
        public com.hazelcast.core.HazelcastInstance casTicketRegistryHazelcastInstance​(@Qualifier("ticketCatalog")
                                                                                       org.apereo.cas.ticket.TicketCatalog ticketCatalog,
                                                                                       org.apereo.cas.configuration.CasConfigurationProperties casProperties)
      • ticketRegistryCleaner

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