Class JdbcDataSourceEnabled

java.lang.Object
io.micronaut.jdbc.JdbcDataSourceEnabled
All Implemented Interfaces:
io.micronaut.context.condition.Condition, Predicate<io.micronaut.context.condition.ConditionContext>

public final class JdbcDataSourceEnabled extends Object implements io.micronaut.context.condition.Condition
Condition checking whether datasource is enabled. If there is property datasources.datasource-name.enabled=false then this condition will not be satisfied for datasource with given datasource-name.
  • Constructor Details

    • JdbcDataSourceEnabled

      public JdbcDataSourceEnabled()
  • Method Details

    • matches

      public boolean matches(io.micronaut.context.condition.ConditionContext context)
      Specified by:
      matches in interface io.micronaut.context.condition.Condition