Skip to content

Commit

Permalink
Add requirement on Cache presence.
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Jun 7, 2020
1 parent 8e0d619 commit e14e849
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
* @author graemerocher
* @since 1.0
*/
@Requires(property = MICRONAUT_METRICS_BINDERS + ".cache.enabled", notEquals = StringUtils.FALSE)
@Requires(classes = Cache.class)
@RequiresMetrics
@Singleton
@Requires(property = MICRONAUT_METRICS_BINDERS + ".cache.enabled", notEquals = StringUtils.FALSE)
public class MicronautCaffeineCacheMetricsBinder implements BeanCreatedEventListener<Cache<?>> {

private final Provider<MeterRegistry> meterRegistryProvider;
Expand Down

0 comments on commit e14e849

Please sign in to comment.