parent
914b3588b0
commit
58826644d1
|
@ -18,7 +18,7 @@ package org.springframework.boot.autoconfigure.condition;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
import org.slf4j.Logger;
|
||||||
import org.springframework.context.annotation.Condition;
|
import org.springframework.context.annotation.Condition;
|
||||||
import org.springframework.context.annotation.ConditionContext;
|
import org.springframework.context.annotation.ConditionContext;
|
||||||
import org.springframework.core.type.AnnotatedTypeMetadata;
|
import org.springframework.core.type.AnnotatedTypeMetadata;
|
||||||
|
@ -158,4 +158,12 @@ public abstract class SpringBootCondition implements Condition {
|
||||||
return condition.matches(context, metadata);
|
return condition.matches(context, metadata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the instance of {@link Logger} used by this
|
||||||
|
* instance of the condition.
|
||||||
|
* @return instance of {@link Logger}
|
||||||
|
*/
|
||||||
|
protected final Log getLogger() {
|
||||||
|
return this.logger;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue