use of org.apereo.cas.util.serialization.ComponentSerializationPlanConfigurer in project cas by apereo.
the class CasCoreUtilSerializationConfiguration method componentSerializationPlan.
@ConditionalOnMissingBean(name = "componentSerializationPlan")
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public ComponentSerializationPlan componentSerializationPlan(final ObjectProvider<List<ComponentSerializationPlanConfigurer>> configurers) {
val plan = new DefaultComponentSerializationPlan();
plan.registerSerializableClass(TriStateBoolean.class);
configurers.ifAvailable(cfgs -> cfgs.forEach(c -> {
LOGGER.trace("Configuring component serialization plan [{}]", c.getName());
c.configureComponentSerializationPlan(plan);
}));
return plan;
}
Aggregations