use of org.apereo.cas.rest.factory.CompositeServiceTicketResourceEntityResponseFactory in project cas by apereo.
the class CasRestConfiguration method serviceTicketResourceEntityResponseFactory.
@Bean
@ConditionalOnMissingBean(name = "serviceTicketResourceEntityResponseFactory")
@Autowired
public ServiceTicketResourceEntityResponseFactory serviceTicketResourceEntityResponseFactory(final List<ServiceTicketResourceEntityResponseFactoryConfigurer> configurers) {
final DefaultServiceTicketResourceEntityResponseFactoryPlan plan = new DefaultServiceTicketResourceEntityResponseFactoryPlan();
configurers.forEach(c -> c.configureEntityResponseFactory(plan));
return new CompositeServiceTicketResourceEntityResponseFactory(plan.getFactories());
}
Aggregations