Search in sources :

Example 1 with DefaultTicketCatalog

use of org.apereo.cas.ticket.DefaultTicketCatalog in project cas by apereo.

the class CasCoreTicketsConfiguration method ticketCatalog.

@ConditionalOnMissingBean(name = "ticketCatalog")
@Autowired
@Bean
public TicketCatalog ticketCatalog(final List<TicketCatalogConfigurer> configurers) {
    final DefaultTicketCatalog plan = new DefaultTicketCatalog();
    configurers.forEach(c -> {
        final String name = StringUtils.removePattern(c.getClass().getSimpleName(), "\\$.+");
        LOGGER.debug("Configuring ticket metadata registration plan [{}]", name);
        c.configureTicketCatalog(plan);
    });
    return plan;
}
Also used : DefaultTicketCatalog(org.apereo.cas.ticket.DefaultTicketCatalog) Autowired(org.springframework.beans.factory.annotation.Autowired) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

DefaultTicketCatalog (org.apereo.cas.ticket.DefaultTicketCatalog)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1