@ConditionalOnMissingBean(name = "inspektrAuditTrailCleaner")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @Lazy(false)
        public Cleanable inspektrAuditTrailCleaner(
            final ConfigurableApplicationContext applicationContext,
            @Qualifier("jdbcAuditTrailManager") final AuditTrailManager jdbcAuditTrailManager) {
            return BeanSupplier.of(Cleanable.class)
                .when(BeanCondition.on("cas.audit.jdbc.schedule.enabled").isTrue().evenIfMissing()
                    .given(applicationContext.getEnvironment()))
                .supply(() -> new JdbcAuditTrailCleaner(jdbcAuditTrailManager))
                .otherwiseProxy()
                .get();
        }
This is {@link CasJdbcAuditAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-audit-jdbc/src/main/java/org/apereo/cas/config/CasJdbcAuditAutoConfiguration.java