Class HazelcastTicketRegistryConfiguration

java.lang.Object
org.apereo.cas.config.HazelcastTicketRegistryConfiguration

@EnableConfigurationProperties(org.apereo.cas.configuration.CasConfigurationProperties.class) @ConditionalOnFeatureEnabled(feature=TicketRegistry, module="hazelcast") @AutoConfiguration public class HazelcastTicketRegistryConfiguration extends 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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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(org.apereo.cas.ticket.serialization.TicketSerializationManager ticketSerializationManager, com.hazelcast.core.HazelcastInstance casTicketRegistryHazelcastInstance, org.apereo.cas.ticket.TicketCatalog ticketCatalog, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
     
    org.apereo.cas.ticket.registry.TicketRegistryCleaner
     

    Methods inherited from class java.lang.Object

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

    • HazelcastTicketRegistryConfiguration

      public HazelcastTicketRegistryConfiguration()
  • Method Details

    • ticketRegistry

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

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

      @Bean @RefreshScope(proxyMode=DEFAULT) @Lazy(false) public org.apereo.cas.ticket.registry.TicketRegistryCleaner ticketRegistryCleaner()