use of org.apereo.cas.util.serialization.DefaultComponentSerializationPlan in project cas by apereo.
the class CasCoreUtilSerializationConfiguration method componentSerializationPlan.
@ConditionalOnMissingBean(name = "componentSerializationPlan")
@Autowired
@Bean
public ComponentSerializationPlan componentSerializationPlan(final List<ComponentSerializationPlanConfigurator> configurers) {
final DefaultComponentSerializationPlan plan = new DefaultComponentSerializationPlan();
configurers.forEach(c -> {
final String name = StringUtils.removePattern(c.getClass().getSimpleName(), "\\$.+");
LOGGER.debug("Configuring component serialization plan [{}]", name);
c.configureComponentSerializationPlan(plan);
});
return plan;
}
Aggregations