Search in sources :

Example 1 with DynamoDbTicketRegistryFacilitator

use of org.apereo.cas.ticket.registry.DynamoDbTicketRegistryFacilitator in project cas by apereo.

the class DynamoDbTicketRegistryConfiguration method dynamoDbTicketRegistryFacilitator.

@Autowired
@RefreshScope
@Bean
public DynamoDbTicketRegistryFacilitator dynamoDbTicketRegistryFacilitator(@Qualifier("ticketCatalog") final TicketCatalog ticketCatalog) {
    final DynamoDbTicketRegistryProperties db = casProperties.getTicket().getRegistry().getDynamoDb();
    final DynamoDbTicketRegistryFacilitator f = new DynamoDbTicketRegistryFacilitator(ticketCatalog, db, amazonDynamoDbClient());
    f.createTicketTables(db.isDropTablesOnStartup());
    return f;
}
Also used : DynamoDbTicketRegistryFacilitator(org.apereo.cas.ticket.registry.DynamoDbTicketRegistryFacilitator) DynamoDbTicketRegistryProperties(org.apereo.cas.configuration.model.support.dynamodb.DynamoDbTicketRegistryProperties) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Autowired(org.springframework.beans.factory.annotation.Autowired) Bean(org.springframework.context.annotation.Bean)

Aggregations

DynamoDbTicketRegistryProperties (org.apereo.cas.configuration.model.support.dynamodb.DynamoDbTicketRegistryProperties)1 DynamoDbTicketRegistryFacilitator (org.apereo.cas.ticket.registry.DynamoDbTicketRegistryFacilitator)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1