Skip to content

Commit

Permalink
fix(quietperiods): remove conditional bean (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
skandragon authored Oct 26, 2018
1 parent 07ccdbf commit 8467913
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@

import static java.time.format.DateTimeFormatter.ISO_INSTANT;

/**
* Handles quiet periods, where a configurable set of triggers will be
* suppressed for a configured time interval. Without any configuration,
* it will default to disabled, and invalid configuration will cause
* log messages to be generated, and disable this feature.
*/
@Slf4j
@Component
@ConditionalOnExpression("${quietPeriod.enabled:false}")
@Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON)
public class QuietPeriodIndicator {
private final Registry registry;

Expand Down

0 comments on commit 8467913

Please sign in to comment.