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;
}
Aggregations